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:
+1
-3
@@ -9,18 +9,16 @@ const theme = {
|
||||
} as any;
|
||||
|
||||
describe("renderPerplexityCall", () => {
|
||||
test("shows the selected model in the tool call row", () => {
|
||||
test("shows query filters in the tool call row", () => {
|
||||
const rendered = renderPerplexityCall(
|
||||
{
|
||||
query: "latest Node release notes",
|
||||
model: "claude46sonnetthinking",
|
||||
recency: "week",
|
||||
limit: 5,
|
||||
},
|
||||
theme,
|
||||
).render(200).join("\n");
|
||||
|
||||
expect(rendered).toContain("claude46sonnetthinking");
|
||||
expect(rendered).toContain("week");
|
||||
expect(rendered).toContain("limit 5");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user