190proof 1.0.4 → 1.0.6
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 +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +10 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -8,7 +8,8 @@ declare enum GPTModel {
|
|
|
8
8
|
GPT35_0613_16K = "gpt-3.5-turbo-16k-0613",
|
|
9
9
|
GPT35_0125 = "gpt-3.5-turbo-0125",
|
|
10
10
|
GPT4_1106_PREVIEW = "gpt-4-1106-preview",
|
|
11
|
-
GPT4_0125_PREVIEW = "gpt-4-0125-preview"
|
|
11
|
+
GPT4_0125_PREVIEW = "gpt-4-0125-preview",
|
|
12
|
+
GPT4_0409 = "gpt-4-turbo-2024-04-09"
|
|
12
13
|
}
|
|
13
14
|
declare enum GroqModel {
|
|
14
15
|
LLAMA_3_70B_8192 = "llama3-70b-8192"
|
|
@@ -84,4 +85,4 @@ interface GenericPayload {
|
|
|
84
85
|
|
|
85
86
|
declare function callWithRetries(identifier: string, aiPayload: GenericPayload, aiConfig?: OpenAIConfig | AnthropicAIConfig, retries?: number, chunkTimeoutMs?: number): Promise<ParsedResponseMessage>;
|
|
86
87
|
|
|
87
|
-
export { ClaudeModel, GPTModel, GroqModel, type OpenAIConfig, callWithRetries };
|
|
88
|
+
export { ClaudeModel, type FunctionDefinition, GPTModel, GroqModel, type OpenAIConfig, callWithRetries };
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,8 @@ declare enum GPTModel {
|
|
|
8
8
|
GPT35_0613_16K = "gpt-3.5-turbo-16k-0613",
|
|
9
9
|
GPT35_0125 = "gpt-3.5-turbo-0125",
|
|
10
10
|
GPT4_1106_PREVIEW = "gpt-4-1106-preview",
|
|
11
|
-
GPT4_0125_PREVIEW = "gpt-4-0125-preview"
|
|
11
|
+
GPT4_0125_PREVIEW = "gpt-4-0125-preview",
|
|
12
|
+
GPT4_0409 = "gpt-4-turbo-2024-04-09"
|
|
12
13
|
}
|
|
13
14
|
declare enum GroqModel {
|
|
14
15
|
LLAMA_3_70B_8192 = "llama3-70b-8192"
|
|
@@ -84,4 +85,4 @@ interface GenericPayload {
|
|
|
84
85
|
|
|
85
86
|
declare function callWithRetries(identifier: string, aiPayload: GenericPayload, aiConfig?: OpenAIConfig | AnthropicAIConfig, retries?: number, chunkTimeoutMs?: number): Promise<ParsedResponseMessage>;
|
|
86
87
|
|
|
87
|
-
export { ClaudeModel, GPTModel, GroqModel, type OpenAIConfig, callWithRetries };
|
|
88
|
+
export { ClaudeModel, type FunctionDefinition, GPTModel, GroqModel, type OpenAIConfig, callWithRetries };
|
package/dist/index.js
CHANGED
|
@@ -27033,6 +27033,7 @@ var GPTModel = /* @__PURE__ */ ((GPTModel2) => {
|
|
|
27033
27033
|
GPTModel2["GPT35_0125"] = "gpt-3.5-turbo-0125";
|
|
27034
27034
|
GPTModel2["GPT4_1106_PREVIEW"] = "gpt-4-1106-preview";
|
|
27035
27035
|
GPTModel2["GPT4_0125_PREVIEW"] = "gpt-4-0125-preview";
|
|
27036
|
+
GPTModel2["GPT4_0409"] = "gpt-4-turbo-2024-04-09";
|
|
27036
27037
|
return GPTModel2;
|
|
27037
27038
|
})(GPTModel || {});
|
|
27038
27039
|
var GroqModel = /* @__PURE__ */ ((GroqModel2) => {
|
|
@@ -31432,11 +31433,15 @@ function parseStreamedResponse(identifier, paragraph, functionCallName, function
|
|
|
31432
31433
|
"Stream error: received function call with unknown name: " + functionCallName
|
|
31433
31434
|
);
|
|
31434
31435
|
}
|
|
31435
|
-
|
|
31436
|
-
|
|
31437
|
-
|
|
31438
|
-
|
|
31439
|
-
|
|
31436
|
+
try {
|
|
31437
|
+
functionCall = {
|
|
31438
|
+
name: functionCallName,
|
|
31439
|
+
arguments: JSON.parse(functionCallArgs)
|
|
31440
|
+
};
|
|
31441
|
+
} catch (error) {
|
|
31442
|
+
console.error("Error parsing functionCallArgs:", functionCallArgs);
|
|
31443
|
+
throw error;
|
|
31444
|
+
}
|
|
31440
31445
|
}
|
|
31441
31446
|
if (!paragraph && !functionCall) {
|
|
31442
31447
|
console.error(
|