@aeye/cletus 0.1.5 → 0.1.7
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.js +14 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -385403,14 +385403,22 @@ var Prompt = class _Prompt {
|
|
|
385403
385403
|
}
|
|
385404
385404
|
if (chunk3.toolCallArguments) {
|
|
385405
385405
|
const toolExecutor = toolExecutorMap.get(chunk3.toolCallArguments.id);
|
|
385406
|
-
toolExecutor
|
|
385407
|
-
|
|
385406
|
+
if (toolExecutor) {
|
|
385407
|
+
toolExecutor.toolCall = chunk3.toolCallArguments;
|
|
385408
|
+
yield emit({ type: "toolParseArguments", tool: toolExecutor.tool, args: chunk3.toolCallArguments.arguments, request });
|
|
385409
|
+
} else {
|
|
385410
|
+
console.error(`Received tool call arguments for unknown tool call ID ${chunk3.toolCallArguments.id}`);
|
|
385411
|
+
}
|
|
385408
385412
|
}
|
|
385409
385413
|
if (chunk3.toolCall) {
|
|
385410
385414
|
const toolExecutor = toolExecutorMap.get(chunk3.toolCall.id);
|
|
385411
|
-
toolExecutor
|
|
385412
|
-
|
|
385413
|
-
|
|
385415
|
+
if (toolExecutor) {
|
|
385416
|
+
toolExecutor.toolCall = chunk3.toolCall;
|
|
385417
|
+
if (toolMode === "immediate") {
|
|
385418
|
+
setImmediate(toolExecutor.run);
|
|
385419
|
+
}
|
|
385420
|
+
} else {
|
|
385421
|
+
console.error(`Received tool call for unknown tool call ID ${chunk3.toolCall.id}`);
|
|
385414
385422
|
}
|
|
385415
385423
|
}
|
|
385416
385424
|
if (chunk3.finishReason) {
|
|
@@ -457929,11 +457937,7 @@ ${JSON.stringify(params, null, 2)}`);
|
|
|
457929
457937
|
defaultParams: {
|
|
457930
457938
|
...config3.providers.openrouter.defaultParams,
|
|
457931
457939
|
appName: "cletus",
|
|
457932
|
-
siteUrl: "https://github.com/ClickerMonkey/aeye"
|
|
457933
|
-
providers: {
|
|
457934
|
-
requireParameters: true,
|
|
457935
|
-
...config3.providers.openrouter.defaultParams?.providers
|
|
457936
|
-
}
|
|
457940
|
+
siteUrl: "https://github.com/ClickerMonkey/aeye"
|
|
457937
457941
|
}
|
|
457938
457942
|
}) } : {},
|
|
457939
457943
|
// Replicate
|