190proof 1.0.4 → 1.0.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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -84,4 +84,4 @@ interface GenericPayload {
|
|
|
84
84
|
|
|
85
85
|
declare function callWithRetries(identifier: string, aiPayload: GenericPayload, aiConfig?: OpenAIConfig | AnthropicAIConfig, retries?: number, chunkTimeoutMs?: number): Promise<ParsedResponseMessage>;
|
|
86
86
|
|
|
87
|
-
export { ClaudeModel, GPTModel, GroqModel, type OpenAIConfig, callWithRetries };
|
|
87
|
+
export { ClaudeModel, type FunctionDefinition, GPTModel, GroqModel, type OpenAIConfig, callWithRetries };
|
package/dist/index.d.ts
CHANGED
|
@@ -84,4 +84,4 @@ interface GenericPayload {
|
|
|
84
84
|
|
|
85
85
|
declare function callWithRetries(identifier: string, aiPayload: GenericPayload, aiConfig?: OpenAIConfig | AnthropicAIConfig, retries?: number, chunkTimeoutMs?: number): Promise<ParsedResponseMessage>;
|
|
86
86
|
|
|
87
|
-
export { ClaudeModel, GPTModel, GroqModel, type OpenAIConfig, callWithRetries };
|
|
87
|
+
export { ClaudeModel, type FunctionDefinition, GPTModel, GroqModel, type OpenAIConfig, callWithRetries };
|
package/dist/index.js
CHANGED
|
@@ -31432,11 +31432,15 @@ function parseStreamedResponse(identifier, paragraph, functionCallName, function
|
|
|
31432
31432
|
"Stream error: received function call with unknown name: " + functionCallName
|
|
31433
31433
|
);
|
|
31434
31434
|
}
|
|
31435
|
-
|
|
31436
|
-
|
|
31437
|
-
|
|
31438
|
-
|
|
31439
|
-
|
|
31435
|
+
try {
|
|
31436
|
+
functionCall = {
|
|
31437
|
+
name: functionCallName,
|
|
31438
|
+
arguments: JSON.parse(functionCallArgs)
|
|
31439
|
+
};
|
|
31440
|
+
} catch (error) {
|
|
31441
|
+
console.error("Error parsing functionCallArgs:", functionCallArgs);
|
|
31442
|
+
throw error;
|
|
31443
|
+
}
|
|
31440
31444
|
}
|
|
31441
31445
|
if (!paragraph && !functionCall) {
|
|
31442
31446
|
console.error(
|