Skip to content

Commit 4967164

Browse files
committed
feat(core): 升级Anthropic适配器使用官方SDK
主要变更: - 添加@anthropic-ai/sdk依赖 - 重构AnthropicAdapter使用官方SDK替代自定义HTTP实现 - 支持真正的SSE流式响应(不再是模拟) - 支持Extended Thinking功能 - 支持工具调用的流式响应 - 优化错误处理和连接配置 - 移除不再需要的timeout参数(SDK内部处理) - 删除service.ts.backup.txt备份文件
1 parent 2eb7ae4 commit 4967164

File tree

3 files changed

+293
-1332
lines changed

3 files changed

+293
-1332
lines changed

packages/core/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"vitest": "^3.0.2"
3131
},
3232
"dependencies": {
33+
"@anthropic-ai/sdk": "^0.65.0",
3334
"@google/genai": "^1.0.0",
3435
"@types/mustache": "^4.2.5",
3536
"dexie": "^4.0.11",

0 commit comments

Comments
 (0)