[PR #4] [MERGED] 适配基于OneApi的中转Claude #93

Closed
opened 2026-02-27 01:56:12 +03:00 by kerem · 0 comments
Owner

📋 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: mainHead: claude-oneapi-compatible


📝 Commits (1)

  • e272400 feat: 新增对使用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.

## 📋 Pull Request Information **Original PR:** https://github.com/ErlichLiu/DeepClaude/pull/4 **Author:** [@GowayLee](https://github.com/GowayLee) **Created:** 2/3/2025 **Status:** ✅ Merged **Merged:** 2/4/2025 **Merged by:** [@ErlichLiu](https://github.com/ErlichLiu) **Base:** `main` ← **Head:** `claude-oneapi-compatible` --- ### 📝 Commits (1) - [`e272400`](https://github.com/ErlichLiu/DeepClaude/commit/e272400c716deea3e8d5ff33219d8f86fc1f4b4e) feat: 新增对使用oneapi接口的claude适配 ### 📊 Changes **4 files changed** (+35 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+6 -4) 📝 `app/clients/claude_client.py` (+24 -7) 📝 `app/deepclaude/deepclaude.py` (+2 -2) 📝 `app/main.py` (+3 -2) </details> ### 📄 Description ## 主要更改 添加了OneApi类型的Claude侧接口适配 ## 更改说明 ### 1. `CLAUDE_PROVIDER` 在`.env.example`中添加环境变量`CLAUDE_PROVIDER`, 取代`USE_OPENROUTER`(来自 #3 ). 考虑到后续发展过程中Provider的类型/数量会逐渐增加, 所以改为这种方式来管理. ### 2. `claude_client.py` 配合`CLAUDE_PROVIDER`, 使用`if-elif-else`选择不同的适配分支, 实现兼容. 🎉感谢作者的无私奉献~ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 01:56:12 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/DeepClaude#93
No description provided.