refactor: drop dead model/limit plumbing and unused render helper

resolveSearchDefaults no longer accepts a per-call model override and
SearchParams no longer carries limit; neither was reachable from the
tool schema (limit is applied client-side in formatForLLM). Also fold
asPositiveNumber into asPositiveInteger and simplify recency matching.
This commit is contained in:
Ivan Pereira
2026-07-14 03:26:27 +01:00
parent 39d977c403
commit 5b6bb41c3f
8 changed files with 13 additions and 40 deletions
-1
View File
@@ -9,7 +9,6 @@ const PERPLEXITY_ENDPOINT = "https://www.perplexity.ai/rest/sse/perplexity_ask";
export interface SearchParams {
query: string;
recency?: "hour" | "day" | "week" | "month" | "year";
limit?: number;
model: string;
incognito: boolean;
}