[PR #52] [MERGED] 配置系统增强 #111

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

📋 Pull Request Information

Original PR: https://github.com/ErlichLiu/DeepClaude/pull/52
Author: @GowayLee
Created: 2/25/2025
Status: Merged
Merged: 2/25/2025
Merged by: @GowayLee

Base: devHead: config-enhancement


📝 Commits (8)

📊 Changes

12 files changed (+514 additions, -259 deletions)

View changed files

📝 .gitignore (+7 -1)
📝 app/clients/base_client.py (+20 -17)
📝 app/clients/claude_client.py (+42 -40)
📝 app/clients/deepseek_client.py (+21 -18)
app/config/__init__.py (+0 -17)
app/config/model_config.py (+197 -0)
app/config/models.yaml (+0 -40)
📝 app/deepclaude/deepclaude.py (+43 -42)
📝 app/main.py (+46 -84)
app/utils/config/loader.py (+37 -0)
app/utils/config/processor.py (+51 -0)
model.example.yaml (+50 -0)

📄 Description

  • 新增model.yaml配置文件, 支持设定任意

    • providers
    • base_models 基本模型, 如: deepseek-reasoner claude-3-5-sonnet-20241022
    • deep_models 组合深度思考模型, 即最终暴露在API的模型, 如: deepclaude deepgemini
  • 重构client中的传参逻辑, 改为使用统一配置管理器 ModelConfig

  • 支持模型列表实时生成


🔄 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/52 **Author:** [@GowayLee](https://github.com/GowayLee) **Created:** 2/25/2025 **Status:** ✅ Merged **Merged:** 2/25/2025 **Merged by:** [@GowayLee](https://github.com/GowayLee) **Base:** `dev` ← **Head:** `config-enhancement` --- ### 📝 Commits (8) - [`f532761`](https://github.com/ErlichLiu/DeepClaude/commit/f5327611ca722eeb3811d43aed80b7e60879f03f) docs: update .gitignore - [`aa9eb28`](https://github.com/ErlichLiu/DeepClaude/commit/aa9eb28d19f75024711fb37c4296161a8fe26536) Merge branch 'ErlichLiu:main' into config-enhancement - [`80fb545`](https://github.com/ErlichLiu/DeepClaude/commit/80fb545062c4178e56f5b6774fe985bb12203323) feat: add model.example.yaml and related data model classes with validators - [`6f99eec`](https://github.com/ErlichLiu/DeepClaude/commit/6f99eec04a1cb766b9a9d7c445c46f1f306b127a) feat: shown_model real-time generation - [`ad3f5e0`](https://github.com/ErlichLiu/DeepClaude/commit/ad3f5e0eb1589a6462820ab576ecd53dfd474208) feat: add shown_model cache - [`cc85d56`](https://github.com/ErlichLiu/DeepClaude/commit/cc85d562e183df0b6fefc2ab18a0ed01ec36f249) feat: add index for model_config - [`21e7a57`](https://github.com/ErlichLiu/DeepClaude/commit/21e7a57f2594d550ae2bc1f6685de02f828df2b8) feat: support new configuration in clients - [`613f0d7`](https://github.com/ErlichLiu/DeepClaude/commit/613f0d761aa0f608a00dfe05a3f2300e213d399a) Merge branch 'config-enhancement' of https://github.com/GowayLee/DeepClaude into config-enhancement ### 📊 Changes **12 files changed** (+514 additions, -259 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+7 -1) 📝 `app/clients/base_client.py` (+20 -17) 📝 `app/clients/claude_client.py` (+42 -40) 📝 `app/clients/deepseek_client.py` (+21 -18) ➖ `app/config/__init__.py` (+0 -17) ➕ `app/config/model_config.py` (+197 -0) ➖ `app/config/models.yaml` (+0 -40) 📝 `app/deepclaude/deepclaude.py` (+43 -42) 📝 `app/main.py` (+46 -84) ➕ `app/utils/config/loader.py` (+37 -0) ➕ `app/utils/config/processor.py` (+51 -0) ➕ `model.example.yaml` (+50 -0) </details> ### 📄 Description - 新增`model.yaml`配置文件, 支持设定任意 - `providers` - `base_models` 基本模型, 如: `deepseek-reasoner` `claude-3-5-sonnet-20241022` - `deep_models` 组合深度思考模型, 即最终暴露在API的模型, 如: `deepclaude` `deepgemini` - 重构client中的传参逻辑, 改为使用统一配置管理器 `ModelConfig` - 支持`模型列表`实时生成 --- <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:16 +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#111
No description provided.