chat-agent-toolkit 1.2.260 → 1.2.262
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -81,8 +81,8 @@ export declare const AGENT_TOOLS: ({
|
|
|
81
81
|
bypassCaptcha: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
82
82
|
sessionId: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
83
83
|
format: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
84
|
-
json: "json";
|
|
85
84
|
html: "html";
|
|
85
|
+
json: "json";
|
|
86
86
|
}>>>;
|
|
87
87
|
scraperUrl: z.ZodOptional<z.ZodString>;
|
|
88
88
|
scraperApiKey: z.ZodOptional<z.ZodString>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chat-agent-toolkit",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.262",
|
|
4
4
|
"description": "Multi-provider AI agent toolkit: generate language responses, search the web, extract content, and manage memory across 10+ LLM providers.",
|
|
5
5
|
"author": "vtempest <grokthiscontact@gmail.com>",
|
|
6
6
|
"license": "rights.institute/PROSPER",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"html-entities": "^2.6.0",
|
|
99
99
|
"manage-storage": "^0.0.13",
|
|
100
100
|
"marked": "^17.0.4",
|
|
101
|
-
"qwksearch-api-client": "^0.9.
|
|
101
|
+
"qwksearch-api-client": "^0.9.206",
|
|
102
102
|
"write-language": "^0.1.4",
|
|
103
103
|
"zod": "^4.3.6"
|
|
104
104
|
},
|
|
@@ -179,6 +179,15 @@ export default class ModelRegistry {
|
|
|
179
179
|
return createOpenAI({
|
|
180
180
|
apiKey,
|
|
181
181
|
baseURL: config.baseURL || openAICompatibleBaseURLs[type],
|
|
182
|
+
// OpenRouter attributes usage to the calling app on its public app
|
|
183
|
+
// rankings page (https://openrouter.ai/apps) when these headers are
|
|
184
|
+
// present; see https://openrouter.ai/docs for the convention.
|
|
185
|
+
...(type === "openrouter" && {
|
|
186
|
+
headers: {
|
|
187
|
+
"HTTP-Referer": process.env.QWKSEARCH_URL || "https://qwksearch.com",
|
|
188
|
+
"X-Title": process.env.QWKSEARCH_APP_NAME || "QwkSearch",
|
|
189
|
+
},
|
|
190
|
+
}),
|
|
182
191
|
}).chat(modelName);
|
|
183
192
|
}
|
|
184
193
|
|