weiwei fa36dc2c60 fix(anthropic): pass back thinking block for assistant turns without reasoning
DeepSeek 类 thinking 模型在 adaptive thinking 下部分 tool-call 轮次不输出
thinking 块,重放时适配器不生成 thinking 块,上游 Anthropic 兼容 API 在
thinking 模式下要求每个 assistant 轮次回传 thinking 块,导致
"The content[].thinking in the thinking mode must be passed back to the API."
400 且毒化会话历史,后续所有请求持续失败。

引入 thinking carrier:缺 reasoning 的轮次复用请求内最近一个有
reasoning+signature 的 assistant 轮次兜底,无 carrier 时输出空 thinking 块;
thinking 关闭时行为不变。与 openai.go 已有空 reasoning_content 兜底对称。

Closes #268
2026-08-07 17:17:03 +08:00
2026-08-07 02:41:14 +08:00
2026-06-30 10:38:52 +08:00
2026-08-07 02:19:29 +08:00
2026-06-30 10:38:52 +08:00
2026-06-30 10:38:52 +08:00
2026-06-30 10:38:52 +08:00
2026-06-30 10:46:26 +08:00
2026-06-30 10:38:52 +08:00
2026-08-03 18:54:56 +08:00
2026-08-07 02:41:14 +08:00

image image image

交流群组

https://t.me/cursor_byok

为什么做这个项目

公司喜欢把 Agent 服务与模型绑定在一起,让用户只能在指定模型、指定订阅和指定计费方式下使用工具。

我希望打破这种绑定关系:模型应该可以自由选择。开发者应该能够把自己的模型 API 接入到任何 IDE、Chat、Agent 或开发工具中,也可以自托管整套服务,避免被单一平台锁定。

这个项目的目标,是让模型选择权重新回到用户手里。

路线图

正式版路线图 详细使用教程

后续

后续会继续扩展更多工具和使用场景,包括但不限于:

  • 支持更多 IDE 接入
  • 支持更多 Chat 类应用
  • 支持更多 Agent 工具和工作流
  • 提供更完善的自托管部署方式
  • 持续优化不同模型 API 的兼容性
  • 降低接入成本,让已有模型额度可以被更充分地利用

最终希望做到:让你的模型 API 可以自由接入到你想使用的任何工具中。

S
Description
No description provided
Readme MIT
19 MiB
Languages
Go 86.4%
Vue 6.3%
JavaScript 4.8%
CSS 1%
NSIS 0.6%
Other 0.8%