@kenkaiiii/gg-agent 5.83.4 → 5.83.5
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.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -844,7 +844,7 @@ async function* agentLoop(messages, options) {
|
|
|
844
844
|
tools: options.tools,
|
|
845
845
|
serverTools: options.serverTools,
|
|
846
846
|
toolChoice: options.toolChoice,
|
|
847
|
-
webSearch: options.webSearch,
|
|
847
|
+
webSearch: typeof options.webSearch === "function" ? options.webSearch() : options.webSearch,
|
|
848
848
|
// Clamped to whatever ceiling this route has already rejected us for
|
|
849
849
|
// (identity when nothing has been learned).
|
|
850
850
|
maxTokens: clampOutputTokens(ceilingKey, options.maxTokens),
|