Skip to content

Commit 7e47e51

Browse files
committed
chore(meta+config+style): 版本升级至 0.1.0a5 + 默认配置 tiers 启用 + 测试代码格式优化;
🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
1 parent ed13fe9 commit 7e47e51

4 files changed

Lines changed: 7 additions & 9 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "coding-proxy"
3-
version = "0.1.0a3"
3+
version = "0.1.0a5"
44
description = "A High-Availability, Transparent, and Smart Multi-Vendor Proxy for Claude Code. Support Claude Plans, GitHub Copilot, Google Antigravity, ZAI/GLM."
55
readme = "README.md"
66
requires-python = ">=3.12"

src/coding/proxy/config/config.default.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# coding-proxy 配置模板
2-
# 复制到 ./config.yaml(项目根目录)或 ~/.coding-proxy/config.yaml 并填入实际密钥
1+
# coding-proxy 默认配置(模板)
2+
# 复制到 ./config.yaml(项目根目录)或 ~/.coding-proxy/config.yaml 并修改自定义设置
33
# 优先级:./config.yaml > ~/.coding-proxy/config.yaml
44

55
server:
@@ -110,8 +110,8 @@ vendors:
110110
#
111111
# 示例 3:将 zhipu 提升为首选,anthropic 作为后备
112112
# tiers: ["zhipu", "anthropic"]
113-
#
114-
# tiers: ["anthropic", "copilot", "antigravity", "zhipu"]
113+
114+
tiers: ["anthropic", "copilot", "antigravity", "zhipu"]
115115

116116
# === 故障转移触发条件 ===
117117
failover:

tests/test_config_loader.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -577,9 +577,7 @@ def test_model_mapping_uses_default_format(self, monkeypatch):
577577

578578
cfg = load_config()
579579
# default 中的 model_mapping 包含 vendors 字段(新格式特征)
580-
has_new_format = any(
581-
getattr(m, "vendors", None) for m in cfg.model_mapping
582-
)
580+
has_new_format = any(getattr(m, "vendors", None) for m in cfg.model_mapping)
583581
assert has_new_format, (
584582
"model_mapping 应使用 default 中的新格式(含 vendors 字段),"
585583
"而非 Pydantic 的旧格式默认值"

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)