Skip to content

Commit a40a232

Browse files
authored
Merge pull request #29 from zhujian0805/main
feat: unify model listing logic into a single v1_models module
2 parents 1774bde + d33e74c commit a40a232

13 files changed

Lines changed: 279 additions & 1043 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Create a `providers.json` file in `~/.config/code-assistant-manager/` or your pr
108108
"my-litellm": {
109109
"endpoint": "https://api.example.com:4142",
110110
"api_key_env": "API_KEY_LITELLM",
111-
"list_models_cmd": "python -m code_assistant_manager.litellm_models",
111+
"list_models_cmd": "python -m code_assistant_manager.v1_models",
112112
"supported_client": "claude,codex,qwen,copilot",
113113
"description": "My LiteLLM Proxy"
114114
}

README_zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ pip install -e ".[dev]"
104104
"my-litellm": {
105105
"endpoint": "https://api.example.com:4142",
106106
"api_key_env": "API_KEY_LITELLM",
107-
"list_models_cmd": "python -m code_assistant_manager.litellm_models",
107+
"list_models_cmd": "python -m code_assistant_manager.v1_models",
108108
"supported_client": "claude,codex,qwen,copilot",
109109
"description": "我的 LiteLLM 代理"
110110
}

code_assistant_manager/copilot_models.py

Lines changed: 0 additions & 177 deletions
This file was deleted.

code_assistant_manager/endpoints.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ class EndpointManager:
119119

120120
# Supported internal modules for model listing
121121
INTERNAL_MODEL_MODULES = (
122-
"code_assistant_manager.litellm_models",
123-
"code_assistant_manager.copilot_models",
122+
"code_assistant_manager.v1_models",
124123
)
125124

126125
# Proxy environment variables to manage

code_assistant_manager/litellm_models.py

Lines changed: 0 additions & 97 deletions
This file was deleted.

0 commit comments

Comments
 (0)