190proof 1.0.46 → 1.0.47
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 +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +11 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -11,7 +11,8 @@ declare enum GPTModel {
|
|
|
11
11
|
GPT4_1106_PREVIEW = "gpt-4-1106-preview",
|
|
12
12
|
GPT4_0125_PREVIEW = "gpt-4-0125-preview",
|
|
13
13
|
GPT4_0409 = "gpt-4-turbo-2024-04-09",
|
|
14
|
-
GPT4O = "gpt-4o"
|
|
14
|
+
GPT4O = "gpt-4o",
|
|
15
|
+
GPT4O_MINI = "gpt-4o-mini"
|
|
15
16
|
}
|
|
16
17
|
declare enum GroqModel {
|
|
17
18
|
LLAMA_3_70B_8192 = "llama3-70b-8192"
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,8 @@ declare enum GPTModel {
|
|
|
11
11
|
GPT4_1106_PREVIEW = "gpt-4-1106-preview",
|
|
12
12
|
GPT4_0125_PREVIEW = "gpt-4-0125-preview",
|
|
13
13
|
GPT4_0409 = "gpt-4-turbo-2024-04-09",
|
|
14
|
-
GPT4O = "gpt-4o"
|
|
14
|
+
GPT4O = "gpt-4o",
|
|
15
|
+
GPT4O_MINI = "gpt-4o-mini"
|
|
15
16
|
}
|
|
16
17
|
declare enum GroqModel {
|
|
17
18
|
LLAMA_3_70B_8192 = "llama3-70b-8192"
|
package/dist/index.js
CHANGED
|
@@ -27037,6 +27037,7 @@ var GPTModel = /* @__PURE__ */ ((GPTModel2) => {
|
|
|
27037
27037
|
GPTModel2["GPT4_0125_PREVIEW"] = "gpt-4-0125-preview";
|
|
27038
27038
|
GPTModel2["GPT4_0409"] = "gpt-4-turbo-2024-04-09";
|
|
27039
27039
|
GPTModel2["GPT4O"] = "gpt-4o";
|
|
27040
|
+
GPTModel2["GPT4O_MINI"] = "gpt-4o-mini";
|
|
27040
27041
|
return GPTModel2;
|
|
27041
27042
|
})(GPTModel || {});
|
|
27042
27043
|
var GroqModel = /* @__PURE__ */ ((GroqModel2) => {
|
|
@@ -31902,14 +31903,17 @@ function jigAnthropicMessages(messages) {
|
|
|
31902
31903
|
}
|
|
31903
31904
|
const lastMessage = acc[acc.length - 1];
|
|
31904
31905
|
if (lastMessage.role === message.role) {
|
|
31905
|
-
|
|
31906
|
-
|
|
31907
|
-
|
|
31908
|
-
|
|
31909
|
-
|
|
31910
|
-
|
|
31911
|
-
message
|
|
31906
|
+
const lastContent = Array.isArray(lastMessage.content) ? lastMessage.content : [{ type: "text", text: lastMessage.content }];
|
|
31907
|
+
const newContent = Array.isArray(message.content) ? message.content : [{ type: "text", text: message.content }];
|
|
31908
|
+
lastMessage.content = [
|
|
31909
|
+
...lastContent,
|
|
31910
|
+
{ type: "text", text: "\n\n---\n\n" },
|
|
31911
|
+
...newContent
|
|
31912
31912
|
];
|
|
31913
|
+
return acc;
|
|
31914
|
+
}
|
|
31915
|
+
if (typeof message.content === "string") {
|
|
31916
|
+
message.content = [{ type: "text", text: message.content }];
|
|
31913
31917
|
}
|
|
31914
31918
|
return [...acc, message];
|
|
31915
31919
|
}, []);
|