mirror of
https://github.com/ErlichLiu/DeepClaude.git
synced 2026-04-25 05:05:57 +03:00
[PR #4] [MERGED] 适配基于OneApi的中转Claude #93
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/DeepClaude#93
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ErlichLiu/DeepClaude/pull/4
Author: @GowayLee
Created: 2/3/2025
Status: ✅ Merged
Merged: 2/4/2025
Merged by: @ErlichLiu
Base:
main← Head:claude-oneapi-compatible📝 Commits (1)
e272400feat: 新增对使用oneapi接口的claude适配📊 Changes
4 files changed (+35 additions, -15 deletions)
View changed files
📝
.env.example(+6 -4)📝
app/clients/claude_client.py(+24 -7)📝
app/deepclaude/deepclaude.py(+2 -2)📝
app/main.py(+3 -2)📄 Description
主要更改
添加了OneApi类型的Claude侧接口适配
更改说明
1.
CLAUDE_PROVIDER在
.env.example中添加环境变量CLAUDE_PROVIDER, 取代USE_OPENROUTER(来自 #3 ). 考虑到后续发展过程中Provider的类型/数量会逐渐增加, 所以改为这种方式来管理.2.
claude_client.py配合
CLAUDE_PROVIDER, 使用if-elif-else选择不同的适配分支, 实现兼容.🎉感谢作者的无私奉献~
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.