agentscope-ai / agentscope-ai/AgentTeams

feat: 支持 Anthropic(Claude)作为内置 LLM 提供商 || feat: Support Anthropic (Claude) as built-in LLM provider

Đang mở
#754 1 bình luận 0 reaction 1 người được giao Được @luoxiner nhận Xem trên GitHub
area:model-higress
Ngôn ngữ chính
Go
Star
5.6k
Fork
692
Merge trung bình
5 ngày 4 giờ
Pull request đã merge (30 ngày)
23

Mô tả

目前 HiClaw 内置了 `qwen` 和 `openai-compat` 两种 LLM 提供商,希望能增加对 Anthropic API 的原生支持。
如果理解的没错,Higress 似乎本身已经内置了 `claude` 提供商类型,可以自动处理 OpenAI → Anthropic 的协议转换,实现起来改动不大:

- 在 initializer 的 switch 里加 `case "anthropic"`,Type 设为 `"claude"`
- 安装脚本的提供商选择菜单里加上 Anthropic 选项
- 无需改动 config 结构体,`LLMAPIKey` / `LLMProvider` 已经是通用字段

这样用户就可以通过 `HICLAW_LLM_PROVIDER=anthropic` 直接使用 `claude-sonnet-4-6`、`claude-opus-4-7` 等模型了。

---
HiClaw currently has two built-in LLM providers, `qwen` and `openai-compat`, and we hope to add native support for the Anthropic API.

Higress itself has built-in `claude` provider type, which can automatically handle the protocol conversion from OpenAI → Anthropic, and the implementation does not change much:

- Add `case "anthropic"` to the switch in the initializer and set Type to `"claude"`
- Added Anthropic option to the provider selection menu of the installation script
- No need to change the config structure, `LLMAPIKey` / `LLMProvider` are already common fields

In this way, users can directly use models such as `claude-sonnet-4-6` and `claude-opus-4-7` through `HICLAW_LLM_PROVIDER=anthropic`.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.