[RFC] 088 - Claude Thinking 集成 #6521
Replies: 4 comments
-
litellm 示例数据: {"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505568,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"thinking_blocks":[{"type":"thinking","thinking":"我","ignature_delta":null}],"reasoning_content":"我","content":"","role":"assistant"}}],"thinking_blocks":[{"type":"thinking","thinking":"我","signature_delta":null}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505569,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"thinking_blocks":[{"type":"thinking","thinking":"需要找94的所有质","signature_delta":null}],"reasoning_content":"需要找出394的所有质","content":""}}],"thinking_blocks":[{"type":"thinking","thinking":"需要找出394的所有质","signature_delta":null}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505569,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"thinking_blocks":[{"type":"thinking","thinking":"因数。\n质因数是","signature_delta":null}],"reasoning_content":"因数。\n\n质因数是","content":""}}],"thinking_blocks":[{"type":"thinking","thinking":"因数。\n\n质因数是","signature_delta":null}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505569,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"thinking_blocks":[{"type":"thinking","thinking":"指能整数的质","signature_delta":null}],"reasoning_content":"指能整除该数的质","content":""}}],"thinking_blocks":[{"type":"thinking","thinking":"指能整除该数的质","signature_delta":null}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505569,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"thinking_blocks":[{"type":"thinking","thinking":"数。我检查394能","signature_delta":null}],"reasoning_content":"数。我先来检查394能","content":""}}],"thinking_blocks":[{"type":"thinking","thinking":"数。我先来检查394能","signature_delta":null}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505569,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"thinking_blocks":[{"type":"thinking","thinking":"被哪些","signature_delta":null}],"reasoning_content":"被哪些小质","content":""}}],"thinking_blocks":[{"type":"thinking","thinking":"被哪些小质","signature_delta":null}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505569,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"thinking_blocks":[{"type":"thinking","thinking":"数整除,"signature_delta":null}],"reasoning_content":"数整除。","content":""}}],"thinking_blocks":[{"type":"thinking","thinking":"数整除。","signature_delta":null}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505569,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"thinking_blocks":[{"type":"thinking","thinking":"\n\n先尝试2:\n394 ","signature_delta":null}],"reasoning_content":"\n\n先尝试2:\n394 ","content":""}}],"thinking_blocks":[{"type":"thinking","thinking":"\n\n先尝试2:\n394 ","signature_delta":null}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505569,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"thinking_blocks":[{"type":"thinking","thinking":"÷ 2 = 197","signature_delta":null}],"reasoning_content":"÷ 2 = 197","content":""}}],"thinking_blocks":[{"type":"thinking","thinking":"÷ 2 = 197","signature_delta":null}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505569,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"thinking_blocks":[{"type":"thinking","thinking":"\n197是质数吗?我","signature_delta":null}],"reasoning_content":"\n197是质数吗?我","content":""}}],"thinking_blocks":[{"type":"thinking","thinking":"\n197是质数吗?我","signature_delta":null}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505569,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"thinking_blocks":[{"type":"thinking","thinking":"来检查n197不","signature_delta":null}],"reasoning_content":"来检查:\n197不","content":""}}],"thinking_blocks":[{"type":"thinking","thinking":"来检查:\n197不","signature_delta":null}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505569,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"thinking_blocks":[{"type":"thinking","thinking":"能被2\n197不能被3","signature_delta":null}],"reasoning_content":"能被2整除\n197不能被3","content":""}}],"thinking_blocks":[{"type":"thinking","thinking":"能被2整除\n197不能被3","signature_delta":null}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505569,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"thinking_blocks":[{"type":"thinking","thinking":"整除\97不能被5","signature_delta":null}],"reasoning_content":"整除\n197不能被5","content":""}}],"thinking_blocks":[{"type":"thinking","thinking":"整除\n197不能被5","signature_delta":null}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505569,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"thinking_blocks":[{"type":"thinking","thinking":"整除\97不能被7整除","signature_delta":null}],"reasoning_content":"整除\n197不能被7整除","content":""}}],"thinking_blocks":[{"type":"thinking","thinking":"整除\n197不能被7整除","signature_delta":null}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505570,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"thinking_blocks":[{"type":"thinking","thinking":"\n197不能被11整除\n197","signature_delta":null}],"reasoning_content":"\n197不能被11整除\n197","content":""}}],"thinking_blocks":[{"type":"thinking","thinking":"\n197不能被11整除\n197","signature_delta":null}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505570,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"thinking_blocks":[{"type":"thinking","thinking":"不能被整除","signature_delta":null}],"reasoning_content":"不能被13整除","content":""}}],"thinking_blocks":[{"type":"thinking","thinking":"不能被13整除","signature_delta":null}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505570,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"thinking_blocks":[{"type":"thinking","thinking":"\n\n要确定197是不是质数,我","signature_delta":null}],"reasoning_content":"\n\n要确定197是不是质数,我","content":""}}],"thinking_blocks":[{"type":"thinking","thinking":"\n\n要确定197是不是质数,我","signature_delta":null}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505570,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"thinking_blocks":[{"type":"thinking","thinking":"需要检是否能","signature_delta":null}],"reasoning_content":"需要检查它是否能","content":""}}],"thinking_blocks":[{"type":"thinking","thinking":"需要检查它是否能","signature_delta":null}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505570,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"thinking_blocks":[{"type":"thinking","thinking":"被不超197的质数整除。√","signature_delta":null}],"reasoning_content":"被不超过√197的质数整除。√","content":""}}],"thinking_blocks":[{"type":"thinking","thinking":"被不超过√197的质数整除。√","signature_delta":null}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505570,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"thinking_blocks":[{"type":"thinking","thinking":"197 ≈ ","signature_delta":null}],"reasoning_content":"197 ≈ ","content":""}}],"thinking_blocks":[{"type":"thinking","thinking":"197 ≈ ","signature_delta":null}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505570,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"thinking_blocks":[{"type":"thinking","thinking":"14,所我已经检查了","signature_delta":null}],"reasoning_content":"14,所以我已经检查了","content":""}}],"thinking_blocks":[{"type":"thinking","thinking":"14,所以我已经检查了","signature_delta":null}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505570,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"thinking_blocks":[{"type":"thinking","thinking":"所有需质数,","signature_delta":null}],"reasoning_content":"所有需要的质数,","content":""}}],"thinking_blocks":[{"type":"thinking","thinking":"所有需要的质数,","signature_delta":null}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505571,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"thinking_blocks":[{"type":"thinking","thinking":"197没更小的因","signature_delta":null}],"reasoning_content":"197没有更小的因","content":""}}],"thinking_blocks":[{"type":"thinking","thinking":"197没有更小的因","signature_delta":null}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505571,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"thinking_blocks":[{"type":"thinking","thinking":"数,所97是质数。","signature_delta":null}],"reasoning_content":"数,所以197是质数。","content":""}}],"thinking_blocks":[{"type":"thinking","thinking":"数,所以197是质数。","signature_delta":null}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505571,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"thinking_blocks":[{"type":"thinking","thinking":"\n\n因此,394的质因数是2和","signature_delta":null}],"reasoning_content":"\n\n因此,394的质因数是2和","content":""}}],"thinking_blocks":[{"type":"thinking","thinking":"\n\n因此,394的质因数是2和","signature_delta":null}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505571,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"thinking_blocks":[{"type":"thinking","thinking":"197。n394 = 2 ","signature_delta":null}],"reasoning_content":"197。\n394 = 2 ","content":""}}],"thinking_blocks":[{"type":"thinking","thinking":"197。\n394 = 2 ","signature_delta":null}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505571,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"thinking_blocks":[{"type":"thinking","thinking":"× 197","signature_delta":null}],"reasoning_content":"× 197","content":""}}],"thinking_blocks":[{"type":"thinking","thinking":"× 197","signature_delta":null}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505571,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"content":"","tool_calls":[{"function":{"arguments":"{}"},"type":"function","index":-1}]}}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505571,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"content":"要找出394的质因数,我需要将"}}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505571,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"content":"394分解为质数的乘积"}}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505571,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"content":"。\n\n我先用最"}}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505572,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"content":"小的质数2"}}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505572,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"content":"尝试除394:\n394 "}}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505572,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"content":"÷ 2 = 197"}}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505572,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"content":"\n\n现在我需要判"}}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505572,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"content":"断197是否为质数。\n-"}}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505572,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"content":" 197不能被2整除"}}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505572,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"content":"\n- 197不能被3整除"}}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505572,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"content":"\n- 对于更"}}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505572,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"content":"大的质数,我"}}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505572,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"content":"只需检查到"}}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505573,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"content":"√197 ≈ 14"}}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505573,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"content":"\n- 5, 7, "}}]}
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505573,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"content":"11, 13都不能整除197"}}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505573,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"content":"\n\n因此197是质数。\n\n所"}}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505573,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"content":"以394的质因数只有两"}}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505573,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"content":"个:2和197"}}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505573,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"content":"\n\n答案:394 = 2"}}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505573,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"content":" × 197,质因数是"}}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505573,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"index":0,"delta":{"content":"2和197。"}}]},
{"id":"chatcmpl-1c04a1f1-d58c-4008-abd7-84f043a222af","created":1740505573,"model":"claude-3-7-sonnet-latest","object":"chat.completion.chunk","choices":[{"finish_reason":"stop","index":0,"delta":{}}]}
|
Beta Was this translation helpful? Give feedback.
-
遗留问题:在持续搜索后,达到历史记录限制带来的报错。 相关问题:
这里存在的问题应该之前实现的时候没有做准整个 message 转换逻辑。需要做一下修正: |
Beta Was this translation helpful? Give feedback.
-
开启思考后,需要关闭历史记录限制,否则会报错: {
"body": {
"error": {
"status": 400,
"headers": {
"connection": "keep-alive",
"content-length": "579",
"content-type": "application/json; charset=utf-8",
"date": "Thu, 27 Feb 2025 08:47:58 GMT",
"x-aihubmix-request-id": "2025022708475795031093801986038"
},
"error": {
"error": {
"type": "invalid_request_error",
"message": "messages.1.content.0.type: Expected `thinking` or `redacted_thinking`, but found `text`. When `thinking` is enabled, a final `assistant` message must start with a thinking block (preceeding the lastmost set of `tool_use` and `tool_result` blocks). We recommend you include thinking blocks from previous turns. To avoid this requirement, disable `thinking`. Please consult our documentation at https://docs.anthropic.com/en/docs/build-with-claude/extended-thinking (request id: 2025022708475795031093801986038)"
},
"type": "error"
}
},
"endpoint": "https://ai****ix.com/",
"provider": "anthropic"
},
"errorType": "ProviderBizError"
} 从这个角度来考虑,感觉深度思考不能默认开启,需要手动触发,并提示用户开启深度思考后会自动取消历史记录条数限制 |
Beta Was this translation helpful? Give feedback.
-
redacted_thinking的作用与必要性User:https://docs.anthropic.com/en/docs/build-with-claude/extended-thinking 根据这个页面的内容帮我解释下 redacted_thinking 的作用?是否一定需要包含进去 Assistant:让我查看这个页面的具体内容。 Assistant:根据文档内容,我来解释 redacted_thinking 的作用和使用要点: redacted_thinking 是 Claude 在使用扩展思考(extended thinking)功能时的一个特殊机制:
总结:redacted_thinking 是一个安全机制,只有在使用工具调用(tool use)功能时才必须包含。在其他情况下,可以选择性地处理或忽略这些块。这个机制既保证了 Claude 的安全性,又不影响其推理能力的连续性。 User:为什么 tools 调用必须要包含 thinking 呢? Assistant:根据文档内容,我来详细解释为什么在工具调用(tools)时必须包含 thinking 块: 核心原因在于工具调用的特殊执行流程和思维连续性:
举个例子来说明:
如果不保留 thinking 块:
所以 thinking 块在工具调用场景下是必须的,它:
这就像人类解决问题时的思维过程 - 当我们需要查找资料时,我们会记住之前的思考过程,等获取到资料后继续之前的思路。thinking 块就扮演了这个"记忆"的角色。 User:所以一旦这里用户修改了 thinking content,就有可能导致问题?所以才需要 signature 吗? Assistant:是的,你理解得很准确!这就是为什么 Anthropic 在 thinking 块中引入了 signature 机制。让我详细解释一下:
这种修改可能:
interface ThinkingBlock {
content: string;
signature: string;
type: 'thinking' | 'redacted_thinking';
}
// 正确的处理方式
function handleThinkingBlock(block: ThinkingBlock) {
// 存储完整的原始块
saveOriginalBlock(block);
// 展示时可以过滤
if (block.type === 'thinking') {
displayThinkingContent(block.content);
}
// API 调用时使用完整原始块
return block;
} 所以 signature 机制是一个重要的安全和完整性保证:
这就像是给 thinking 块加了一个防篡改封条,确保从 Claude 输出到再次输入的过程中,思维过程保持原样,不会被人为修改或破坏。 |
Beta Was this translation helpful? Give feedback.
-
背景
集成 Claude 3.7 Sonnet 模型 Extended Thinking 能力:https://www.anthropic.com/news/claude-3-7-sonnet
设计思路
Thinking 集成
由于 Claude 3.7 具有 DeepSeek 类模型不具备的特殊字段,因此设计还略有不同。
Claude 对于推理的态度是一个可控的思路,提供了专门的
thinking
字段用于开启这个功能,同时提供了budget_tokens
用于控制思考深度,比起 OpenAI 和 DeepSeek 都对开发者更友好:正常来说只要开启这个配置后,Claude 就具有了 Thinking 能力,然后只需要解析 claude 返回的 thinking 块,走 LobeChat 现有的标准 SSE 协议即可正常展示 thinking 块,这也是 PR #6515 中做的工作。
Thinking + Tool Use
但事实上当我测试了同时开启 Thinking + Search 插件时,事情就变得没有那么简单了。默认 Thinking + 联网插件时,直接使用就会遇到一个报错:
报错提到的问题点是,assistant 如果需要使用 tool calling,那么必须在 assistants 中包含
thinking
或者redacted_thinking
块。即构造出来的数据结构必须得是这样:
这里非常值得说的就是
signature
字段,我在 下面 贴了中间和 Claude 3.7 讨论的要点,它提到了为什么需要 signature ,以及为什么 thinking 是 tools calling 中必须的东西。从这一点来看,Claude 的确是一家非常重视 LLM 安全性的公司,并且在工程实践上给出了非常好的指引,Respect。当然,加了这个 thinking 块的确大大提升了接入 claude thinking 的复杂度,但是从完成以后来看是非常值得的一件事情。
进展
Beta Was this translation helpful? Give feedback.
All reactions