snow-ai 0.6.42 → 0.6.43
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/bundle/cli.mjs +9 -3
- package/bundle/package.json +1 -1
- package/package.json +1 -1
package/bundle/cli.mjs
CHANGED
|
@@ -75566,7 +75566,10 @@ function convertToAnthropicMessages(messages, includeBuiltinSystemPrompt = true,
|
|
|
75566
75566
|
if (msg.role === "assistant" && msg.tool_calls && msg.tool_calls.length > 0) {
|
|
75567
75567
|
const content = [];
|
|
75568
75568
|
if (msg.thinking && !disableThinking) {
|
|
75569
|
-
content.push(
|
|
75569
|
+
content.push({
|
|
75570
|
+
...msg.thinking,
|
|
75571
|
+
signature: msg.thinking.signature || ""
|
|
75572
|
+
});
|
|
75570
75573
|
}
|
|
75571
75574
|
if (msg.content) {
|
|
75572
75575
|
content.push({
|
|
@@ -75591,7 +75594,10 @@ function convertToAnthropicMessages(messages, includeBuiltinSystemPrompt = true,
|
|
|
75591
75594
|
if (msg.role === "user" || msg.role === "assistant") {
|
|
75592
75595
|
if (msg.role === "assistant" && msg.thinking && !disableThinking) {
|
|
75593
75596
|
const content = [];
|
|
75594
|
-
content.push(
|
|
75597
|
+
content.push({
|
|
75598
|
+
...msg.thinking,
|
|
75599
|
+
signature: msg.thinking.signature || ""
|
|
75600
|
+
});
|
|
75595
75601
|
if (msg.content) {
|
|
75596
75602
|
content.push({
|
|
75597
75603
|
type: "text",
|
|
@@ -76031,7 +76037,7 @@ Possible causes: Network unavailable, DNS resolution failed, proxy issues, or se
|
|
|
76031
76037
|
const thinkingBlock = thinkingTextBuffer ? {
|
|
76032
76038
|
type: "thinking",
|
|
76033
76039
|
thinking: thinkingTextBuffer,
|
|
76034
|
-
signature: thinkingSignature ||
|
|
76040
|
+
signature: thinkingSignature || ""
|
|
76035
76041
|
} : void 0;
|
|
76036
76042
|
yield {
|
|
76037
76043
|
type: "done",
|
package/bundle/package.json
CHANGED