coding-proxy 0.1.3a1__tar.gz → 0.1.4a1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of coding-proxy might be problematic. Click here for more details.
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/CHANGELOG.md +13 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/PKG-INFO +1 -1
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/pyproject.toml +1 -1
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/routing/circuit_breaker.py +31 -8
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/routing/tier.py +4 -1
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/vendors/anthropic.py +7 -3
- coding_proxy-0.1.4a1/tests/test_circuit_breaker.py +155 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_tier.py +67 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_vendors.py +73 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/uv.lock +1 -1
- coding_proxy-0.1.3a1/tests/test_circuit_breaker.py +0 -49
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/.github/workflows/ci.yml +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/.github/workflows/coverage.yml +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/.github/workflows/promote.yml +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/.github/workflows/release.yml +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/.gitignore +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/AGENTS.md +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/CLAUDE.md +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/LICENSE +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/README.md +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/docs/ci-cd.md +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/docs/framework.md +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/docs/user-guide.md +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/docs/zh-CN/README.md +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/__init__.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/__init__.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/__main__.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/auth/__init__.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/auth/providers/__init__.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/auth/providers/base.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/auth/providers/github.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/auth/providers/google.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/auth/runtime.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/auth/store.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/cli/__init__.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/cli/auth_commands.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/compat/__init__.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/compat/canonical.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/compat/session_store.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/config/__init__.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/config/auth_schema.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/config/config.default.yaml +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/config/loader.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/config/resiliency.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/config/routing.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/config/schema.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/config/server.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/config/vendors.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/convert/__init__.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/convert/anthropic_to_gemini.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/convert/anthropic_to_openai.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/convert/gemini_sse_adapter.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/convert/gemini_to_anthropic.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/convert/openai_to_anthropic.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/logging/__init__.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/logging/db.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/logging/stats.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/model/__init__.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/model/auth.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/model/compat.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/model/constants.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/model/pricing.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/model/token.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/model/vendor.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/pricing.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/routing/__init__.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/routing/error_classifier.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/routing/executor.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/routing/model_mapper.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/routing/quota_guard.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/routing/rate_limit.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/routing/retry.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/routing/router.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/routing/session_manager.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/routing/usage_parser.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/routing/usage_recorder.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/server/__init__.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/server/app.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/server/factory.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/server/request_normalizer.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/server/responses.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/server/routes.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/streaming/__init__.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/streaming/anthropic_compat.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/vendors/__init__.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/vendors/antigravity.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/vendors/base.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/vendors/copilot.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/vendors/copilot_models.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/vendors/copilot_token_manager.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/vendors/copilot_urls.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/vendors/mixins.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/vendors/token_manager.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/vendors/zhipu.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/__init__.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_antigravity.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_app_routes.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_auto_login.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_cli_usage.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_compat.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_config_init.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_config_loader.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_convert_request.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_convert_response.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_convert_sse.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_copilot.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_copilot_convert_request.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_copilot_convert_response.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_copilot_models.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_copilot_urls.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_currency.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_error_classifier.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_mixins.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_model_auth.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_model_compat.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_model_constants.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_model_mapper.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_model_pricing.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_model_token.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_model_vendor.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_parse_usage.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_pricing.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_quota_guard.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_rate_limit.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_request_normalizer.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_router_chain.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_router_executor.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_runtime_reauth.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_schema.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_streaming_anthropic_compat.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_tiers_config.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_token_logger.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_token_manager.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_types.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_vendor_streaming.py +0 -0
- {coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/tests/test_zhipu.py +0 -0
|
@@ -4,6 +4,19 @@
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [v0.1.3](https://github.com/ThreeFish-AI/coding-proxy/releases/tag/v0.1.3) — 2026-04-07
|
|
8
|
+
|
|
9
|
+
> [!IMPORTANT]
|
|
10
|
+
>
|
|
11
|
+
> **🔥 跨供应商"身份危机" + 熔断器"装死"双杀!**
|
|
12
|
+
>
|
|
13
|
+
> Zhipu 的 thinking blocks 偷渡到 Anthropic 被当场识破 → 400 无限循环降级?斩了。429 限流后熔断器嘴上说"我没事"身体却已躺平?修了。两大隐蔽 Bug 一锅端,跨供应商丝滑切换从此告别"薛定谔的可用性"。
|
|
14
|
+
|
|
15
|
+
### ✨ 核心亮点
|
|
16
|
+
|
|
17
|
+
- **Thinking Blocks "安检门"**:Anthropic 对请求体 deepcopy 后,**精准剥离** assistant messages 中的 `thinking` / `redacted_thinking` blocks。Zhipu → Anthropic 迁移时历史思考签名不再越界,400 `invalid_request_error` 彻底根除,其他供应商零影响;
|
|
18
|
+
- **熔断器 Force-Open 闪电响应**:为 `record_failure()` 新增 `force_open` 参数——当检测到 429/403 携带 `retry_after_seconds`(即 Rate Limit 硬信号)时,**跳过累积阈值直接 OPEN**,状态展示与实际可用性分秒对齐;非 429 错误(5xx、超时等)保持原有累积行为不变。
|
|
19
|
+
|
|
7
20
|
## [v0.1.2](https://github.com/ThreeFish-AI/coding-proxy/releases/tag/v0.1.2) — 2026-04-06
|
|
8
21
|
|
|
9
22
|
> [!IMPORTANT]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: coding-proxy
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4a1
|
|
4
4
|
Summary: A High-Availability, Transparent, and Smart Multi-Vendor Proxy for Claude Code. Support Claude Plans, GitHub Copilot, Google Antigravity, ZAI/GLM.
|
|
5
5
|
Project-URL: Source Code, https://github.com/ThreeFish-AI/coding-proxy
|
|
6
6
|
Project-URL: User Guide, https://github.com/ThreeFish-AI/coding-proxy/blob/master/docs/user-guide.md
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "coding-proxy"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.4a1"
|
|
4
4
|
description = "A High-Availability, Transparent, and Smart Multi-Vendor Proxy for Claude Code. Support Claude Plans, GitHub Copilot, Google Antigravity, ZAI/GLM."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.12"
|
|
@@ -70,12 +70,20 @@ class CircuitBreaker:
|
|
|
70
70
|
# 正常状态下成功,无需操作
|
|
71
71
|
pass
|
|
72
72
|
|
|
73
|
-
def record_failure(
|
|
73
|
+
def record_failure(
|
|
74
|
+
self,
|
|
75
|
+
retry_after_seconds: float | None = None,
|
|
76
|
+
*,
|
|
77
|
+
force_open: bool = False,
|
|
78
|
+
) -> None:
|
|
74
79
|
"""记录一次失败调用.
|
|
75
80
|
|
|
76
81
|
Args:
|
|
77
82
|
retry_after_seconds: 从响应头解析出的建议恢复时间(秒)。
|
|
78
83
|
若提供且大于当前指数退避值,将覆盖以避免过早探测。
|
|
84
|
+
force_open: 是否忽略 failure_threshold,立即将熔断器转为 OPEN。
|
|
85
|
+
用于 429/rate limit 等具有明确恢复窗口的错误,
|
|
86
|
+
此类错误无需多次采样即可确定供应商不可用。
|
|
79
87
|
"""
|
|
80
88
|
with self._lock:
|
|
81
89
|
self._failure_count += 1
|
|
@@ -90,9 +98,16 @@ class CircuitBreaker:
|
|
|
90
98
|
self._current_recovery,
|
|
91
99
|
)
|
|
92
100
|
elif self._state == CircuitState.CLOSED:
|
|
93
|
-
if self._failure_count >= self._failure_threshold:
|
|
101
|
+
if force_open or self._failure_count >= self._failure_threshold:
|
|
94
102
|
self._transition_to(CircuitState.OPEN)
|
|
95
|
-
|
|
103
|
+
# force_open 场景下,retry-after 是权威信号(如 429 Retry-After),
|
|
104
|
+
# 即使不超过当前退避值也应采用;非 force_open 时仅在有优势时覆盖。
|
|
105
|
+
if force_open and retry_after_seconds is not None:
|
|
106
|
+
self._current_recovery = min(
|
|
107
|
+
retry_after_seconds,
|
|
108
|
+
self._max_recovery,
|
|
109
|
+
)
|
|
110
|
+
elif (
|
|
96
111
|
retry_after_seconds
|
|
97
112
|
and retry_after_seconds > self._current_recovery
|
|
98
113
|
):
|
|
@@ -100,11 +115,19 @@ class CircuitBreaker:
|
|
|
100
115
|
retry_after_seconds,
|
|
101
116
|
self._max_recovery,
|
|
102
117
|
)
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
118
|
+
if force_open:
|
|
119
|
+
logger.warning(
|
|
120
|
+
"Circuit breaker: CLOSED → OPEN "
|
|
121
|
+
"(forced, rate-limited, next retry in %ds)",
|
|
122
|
+
self._current_recovery,
|
|
123
|
+
)
|
|
124
|
+
else:
|
|
125
|
+
logger.warning(
|
|
126
|
+
"Circuit breaker: CLOSED → OPEN "
|
|
127
|
+
"(%d consecutive failures, next retry in %ds)",
|
|
128
|
+
self._failure_count,
|
|
129
|
+
self._current_recovery,
|
|
130
|
+
)
|
|
108
131
|
|
|
109
132
|
def reset(self) -> None:
|
|
110
133
|
"""手动重置熔断器为 CLOSED 状态."""
|
|
@@ -85,7 +85,10 @@ class VendorTier:
|
|
|
85
85
|
rate_limit_deadline: 精确的 rate limit 截止 monotonic 时间戳
|
|
86
86
|
"""
|
|
87
87
|
if self.circuit_breaker:
|
|
88
|
-
self.circuit_breaker.record_failure(
|
|
88
|
+
self.circuit_breaker.record_failure(
|
|
89
|
+
retry_after_seconds=retry_after_seconds,
|
|
90
|
+
force_open=(retry_after_seconds is not None),
|
|
91
|
+
)
|
|
89
92
|
if self.quota_guard and is_cap_error:
|
|
90
93
|
self.quota_guard.notify_cap_error(retry_after_seconds=retry_after_seconds)
|
|
91
94
|
if self.weekly_quota_guard and is_cap_error:
|
|
@@ -43,9 +43,13 @@ def _strip_thinking_blocks(body: dict[str, Any]) -> int:
|
|
|
43
43
|
]
|
|
44
44
|
removed = original_len - len(new_content)
|
|
45
45
|
if removed and not new_content:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
# 剥离所有 thinking blocks 后 content 为空 ——
|
|
47
|
+
# Anthropic API 要求非末尾 assistant message 的 content 必须非空。
|
|
48
|
+
# 插入最小占位 text block 以保持消息结构合法性。
|
|
49
|
+
new_content = [{"type": "text", "text": "[thinking]"}]
|
|
50
|
+
logger.info(
|
|
51
|
+
"anthropic: inserted placeholder text block after stripping "
|
|
52
|
+
"%d thinking block(s) to avoid empty assistant content",
|
|
49
53
|
removed,
|
|
50
54
|
)
|
|
51
55
|
message["content"] = new_content
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
"""熔断器状态转换单元测试."""
|
|
2
|
+
|
|
3
|
+
from coding.proxy.routing.circuit_breaker import CircuitBreaker, CircuitState
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def test_initial_state_is_closed():
|
|
7
|
+
cb = CircuitBreaker(failure_threshold=3, recovery_timeout_seconds=30)
|
|
8
|
+
assert cb.state == CircuitState.CLOSED
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def test_closed_to_open():
|
|
12
|
+
cb = CircuitBreaker(failure_threshold=3, recovery_timeout_seconds=30)
|
|
13
|
+
for _ in range(3):
|
|
14
|
+
cb.record_failure()
|
|
15
|
+
assert cb.state == CircuitState.OPEN
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def test_open_rejects_requests():
|
|
19
|
+
cb = CircuitBreaker(failure_threshold=3, recovery_timeout_seconds=300)
|
|
20
|
+
for _ in range(3):
|
|
21
|
+
cb.record_failure()
|
|
22
|
+
assert not cb.can_execute()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def test_reset_to_closed():
|
|
26
|
+
cb = CircuitBreaker(failure_threshold=3, recovery_timeout_seconds=30)
|
|
27
|
+
for _ in range(3):
|
|
28
|
+
cb.record_failure()
|
|
29
|
+
assert cb.state == CircuitState.OPEN
|
|
30
|
+
cb.reset()
|
|
31
|
+
assert cb.state == CircuitState.CLOSED
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def test_success_resets_failure_count():
|
|
35
|
+
cb = CircuitBreaker(failure_threshold=3, recovery_timeout_seconds=30)
|
|
36
|
+
cb.record_failure()
|
|
37
|
+
cb.record_failure()
|
|
38
|
+
cb.record_success()
|
|
39
|
+
# 成功重置失败计数,再失败两次不会触发 OPEN
|
|
40
|
+
cb.record_failure()
|
|
41
|
+
cb.record_failure()
|
|
42
|
+
assert cb.state == CircuitState.CLOSED
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def test_get_info():
|
|
46
|
+
cb = CircuitBreaker(failure_threshold=3, recovery_timeout_seconds=30)
|
|
47
|
+
info = cb.get_info()
|
|
48
|
+
assert info["state"] == "closed"
|
|
49
|
+
assert info["failure_count"] == 0
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
# ── force_open: 429 / rate limit 立即开路 ──────────────────────
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def test_force_open_immediately_opens_from_closed():
|
|
56
|
+
"""force_open=True 时,单次失败即可从 CLOSED → OPEN(无需累积至阈值)."""
|
|
57
|
+
cb = CircuitBreaker(failure_threshold=3, recovery_timeout_seconds=30)
|
|
58
|
+
assert cb.state == CircuitState.CLOSED
|
|
59
|
+
|
|
60
|
+
cb.record_failure(force_open=True)
|
|
61
|
+
assert cb.state == CircuitState.OPEN
|
|
62
|
+
assert not cb.can_execute()
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
def test_force_open_uses_retry_after_as_recovery():
|
|
66
|
+
"""force_open + retry_after_seconds → 使用 server-hinted 恢复时间作为 recovery."""
|
|
67
|
+
cb = CircuitBreaker(failure_threshold=3, recovery_timeout_seconds=300)
|
|
68
|
+
|
|
69
|
+
cb.record_failure(retry_after_seconds=60.0, force_open=True)
|
|
70
|
+
assert cb.state == CircuitState.OPEN
|
|
71
|
+
|
|
72
|
+
info = cb.get_info()
|
|
73
|
+
assert info["current_recovery_seconds"] == 60.0
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
def test_force_open_respects_max_recovery():
|
|
77
|
+
"""force_open 的 retry_after 超过 max_recovery 时应被截断."""
|
|
78
|
+
cb = CircuitBreaker(
|
|
79
|
+
failure_threshold=3,
|
|
80
|
+
recovery_timeout_seconds=300,
|
|
81
|
+
max_recovery_seconds=3600,
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
cb.record_failure(retry_after_seconds=7200.0, force_open=True) # 2h > 1h max
|
|
85
|
+
info = cb.get_info()
|
|
86
|
+
assert info["current_recovery_seconds"] == 3600.0
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def test_force_open_without_retry_uses_default_backoff():
|
|
90
|
+
"""force_open 但无 retry_after → 使用默认 recovery_timeout 作为退避."""
|
|
91
|
+
cb = CircuitBreaker(failure_threshold=3, recovery_timeout_seconds=300)
|
|
92
|
+
|
|
93
|
+
cb.record_failure(force_open=True) # 无 retry_after
|
|
94
|
+
info = cb.get_info()
|
|
95
|
+
assert info["current_recovery_seconds"] == 300
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
def test_force_open_in_half_open_stays_same_behavior():
|
|
99
|
+
"""HALF_OPEN 状态下 force_open 不改变既有行为(本来就立即 OPEN).
|
|
100
|
+
|
|
101
|
+
验证 HALF_OPEN 分支的 force_open 走的是同一条立即 OPEN 路径,
|
|
102
|
+
与非 force_open 行为一致.
|
|
103
|
+
"""
|
|
104
|
+
cb = CircuitBreaker(failure_threshold=1, recovery_timeout_seconds=30)
|
|
105
|
+
cb.record_failure() # CLOSED → OPEN
|
|
106
|
+
assert cb.state == CircuitState.OPEN
|
|
107
|
+
|
|
108
|
+
# 手动推进到 HALF_OPEN(将 last_failure_time 往前推超过 recovery)
|
|
109
|
+
import time as _time
|
|
110
|
+
|
|
111
|
+
cb._last_failure_time = _time.monotonic() - cb._recovery_timeout - 1
|
|
112
|
+
assert cb.state == CircuitState.HALF_OPEN
|
|
113
|
+
|
|
114
|
+
# HALF_OPEN 下任意失败(含 force_open)都应立即回到 OPEN
|
|
115
|
+
cb.record_failure(force_open=True)
|
|
116
|
+
# 断言:_check_recovery 未触发(刚进入 OPEN),state 应为 OPEN
|
|
117
|
+
assert cb.state == CircuitState.OPEN
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
def test_no_force_open_preserves_original_threshold():
|
|
121
|
+
"""force_open=False(默认)保持原有的 failure_threshold 累积行为."""
|
|
122
|
+
cb = CircuitBreaker(failure_threshold=3, recovery_timeout_seconds=30)
|
|
123
|
+
|
|
124
|
+
cb.record_failure() # count=1, still CLOSED
|
|
125
|
+
assert cb.state == CircuitState.CLOSED
|
|
126
|
+
|
|
127
|
+
cb.record_failure() # count=2, still CLOSED
|
|
128
|
+
assert cb.state == CircuitState.CLOSED
|
|
129
|
+
|
|
130
|
+
cb.record_failure() # count=3, → OPEN
|
|
131
|
+
assert cb.state == CircuitState.OPEN
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
def test_force_open_with_small_hint_overrides_current():
|
|
135
|
+
"""force_open 时即使 hint < current_recovery 也使用 hint(429 权威信号).
|
|
136
|
+
|
|
137
|
+
模拟场景:CB 已因累积失败进入 OPEN(current_recovery 较大),
|
|
138
|
+
随后 reset 回 CLOSED,再收到带较短 retry-after 的 429.
|
|
139
|
+
"""
|
|
140
|
+
cb = CircuitBreaker(failure_threshold=3, recovery_timeout_seconds=300)
|
|
141
|
+
# 先通过正常累积进入 OPEN,建立较大的 current_recovery
|
|
142
|
+
cb.record_failure()
|
|
143
|
+
cb.record_failure()
|
|
144
|
+
cb.record_failure() # → OPEN, current_recovery=300
|
|
145
|
+
assert cb.state == CircuitState.OPEN
|
|
146
|
+
|
|
147
|
+
# reset 回 CLOSED(模拟恢复后重试)
|
|
148
|
+
cb.reset()
|
|
149
|
+
assert cb.state == CircuitState.CLOSED
|
|
150
|
+
assert cb.get_info()["current_recovery_seconds"] == 300
|
|
151
|
+
|
|
152
|
+
# 再一次 force_open,hint 较小 — 应使用权威 hint
|
|
153
|
+
cb.record_failure(retry_after_seconds=10.0, force_open=True)
|
|
154
|
+
info = cb.get_info()
|
|
155
|
+
assert info["current_recovery_seconds"] == 10.0
|
|
@@ -355,3 +355,70 @@ def test_record_failure_non_cap_no_weekly_qg_notify():
|
|
|
355
355
|
tier = VendorTier(vendor=_make_vendor(), weekly_quota_guard=wqg)
|
|
356
356
|
tier.record_failure(is_cap_error=False)
|
|
357
357
|
assert wqg.can_use_primary()
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
# ── 429 → CB immediate open 集成测试 ───────────────────────────
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
def test_record_failure_with_retry_after_forces_cb_open():
|
|
364
|
+
"""提供 retry_after_seconds 时,CB 应立即进入 OPEN(单次即可,无需累积至阈值).
|
|
365
|
+
|
|
366
|
+
模拟 executor 解析 429 响应头后调用 tier.record_failure(retry_after_seconds=...)
|
|
367
|
+
的完整链路.
|
|
368
|
+
"""
|
|
369
|
+
cb = CircuitBreaker(failure_threshold=3) # 默认阈值 3
|
|
370
|
+
tier = VendorTier(vendor=_make_vendor(), circuit_breaker=cb)
|
|
371
|
+
|
|
372
|
+
# 模拟 429 响应:单次 record_failure 即应打开 CB
|
|
373
|
+
tier.record_failure(
|
|
374
|
+
retry_after_seconds=60.0,
|
|
375
|
+
rate_limit_deadline=time.monotonic() + 66,
|
|
376
|
+
)
|
|
377
|
+
|
|
378
|
+
assert cb.state == CircuitState.OPEN # 核心断言:单次即 OPEN
|
|
379
|
+
assert tier.is_rate_limited # deadline 也应设置
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
def test_record_failure_without_retry_after_preserves_threshold():
|
|
383
|
+
"""不提供 retry_after_seconds 时,CB 保持原有累积行为(非 429 场景).
|
|
384
|
+
|
|
385
|
+
如连接超时、5xx 等不携带 retry-after 的错误,仍需累积至 failure_threshold.
|
|
386
|
+
"""
|
|
387
|
+
cb = CircuitBreaker(failure_threshold=3)
|
|
388
|
+
tier = VendorTier(vendor=_make_vendor(), circuit_breaker=cb)
|
|
389
|
+
|
|
390
|
+
tier.record_failure() # count=1
|
|
391
|
+
assert cb.state == CircuitState.CLOSED # 未达阈值
|
|
392
|
+
|
|
393
|
+
tier.record_failure() # count=2
|
|
394
|
+
assert cb.state == CircuitState.CLOSED # 未达阈值
|
|
395
|
+
|
|
396
|
+
tier.record_failure() # count=3 → OPEN
|
|
397
|
+
assert cb.state == CircuitState.OPEN
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
def test_record_failure_429_cb_open_and_rl_deadline_consistent():
|
|
401
|
+
"""429 场景下 CB state 与 rate_limit_deadline 语义一致.
|
|
402
|
+
|
|
403
|
+
验证修复前的核心矛盾已解决:
|
|
404
|
+
- 修复前:CB=closed(误导)但 rate_limited=true(实际拦截)
|
|
405
|
+
- 修复后:CB=open(一致)且 rate_limited=true(双重保护)
|
|
406
|
+
"""
|
|
407
|
+
cb = CircuitBreaker(failure_threshold=3)
|
|
408
|
+
tier = VendorTier(vendor=_make_vendor("anthropic"), circuit_breaker=cb)
|
|
409
|
+
|
|
410
|
+
future = time.monotonic() + 66
|
|
411
|
+
tier.record_failure(
|
|
412
|
+
is_cap_error=False,
|
|
413
|
+
retry_after_seconds=60.0,
|
|
414
|
+
rate_limit_deadline=future,
|
|
415
|
+
)
|
|
416
|
+
|
|
417
|
+
# CB 应为 OPEN(而非 CLOSED)
|
|
418
|
+
assert cb.state == CircuitState.OPEN
|
|
419
|
+
# can_execute 应返回 False(CB + RL deadline 双重保护)
|
|
420
|
+
assert not tier.can_execute()
|
|
421
|
+
# rate limit 信息也应反映限制状态
|
|
422
|
+
rl_info = tier.get_rate_limit_info()
|
|
423
|
+
assert rl_info["is_rate_limited"] is True
|
|
424
|
+
assert rl_info["remaining_seconds"] > 59
|
|
@@ -183,6 +183,79 @@ async def test_anthropic_prepare_request_handles_string_content():
|
|
|
183
183
|
assert prepared_body["messages"][0]["content"] == "plain text response"
|
|
184
184
|
|
|
185
185
|
|
|
186
|
+
@pytest.mark.asyncio
|
|
187
|
+
async def test_anthropic_prepare_request_thinking_only_gets_placeholder():
|
|
188
|
+
"""assistant message 仅含 thinking blocks 时,剥离后应插入占位 text block."""
|
|
189
|
+
vendor = AnthropicVendor(AnthropicConfig(), FailoverConfig())
|
|
190
|
+
body = {
|
|
191
|
+
"model": "claude-opus-4-6",
|
|
192
|
+
"messages": [
|
|
193
|
+
{"role": "user", "content": "hello"},
|
|
194
|
+
{
|
|
195
|
+
"role": "assistant",
|
|
196
|
+
"content": [
|
|
197
|
+
{
|
|
198
|
+
"type": "thinking",
|
|
199
|
+
"thinking": "Let me think...",
|
|
200
|
+
"signature": "zhipu-sig",
|
|
201
|
+
},
|
|
202
|
+
],
|
|
203
|
+
},
|
|
204
|
+
{"role": "user", "content": "follow up"},
|
|
205
|
+
],
|
|
206
|
+
}
|
|
207
|
+
prepared_body, _ = await vendor._prepare_request(body, {})
|
|
208
|
+
|
|
209
|
+
content = prepared_body["messages"][1]["content"]
|
|
210
|
+
assert len(content) == 1
|
|
211
|
+
assert content[0]["type"] == "text"
|
|
212
|
+
assert content[0]["text"] == "[thinking]"
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
@pytest.mark.asyncio
|
|
216
|
+
async def test_anthropic_prepare_request_thinking_only_with_tool_result_context():
|
|
217
|
+
"""多轮对话:thinking-only assistant + 后续 user tool_result 不应触发结构错误."""
|
|
218
|
+
vendor = AnthropicVendor(AnthropicConfig(), FailoverConfig())
|
|
219
|
+
body = {
|
|
220
|
+
"model": "claude-opus-4-6",
|
|
221
|
+
"messages": [
|
|
222
|
+
{"role": "user", "content": "hello"},
|
|
223
|
+
{
|
|
224
|
+
"role": "assistant",
|
|
225
|
+
"content": [
|
|
226
|
+
{
|
|
227
|
+
"type": "thinking",
|
|
228
|
+
"thinking": "thought 1",
|
|
229
|
+
"signature": "sig-1",
|
|
230
|
+
},
|
|
231
|
+
{"type": "redacted_thinking", "data": "base64data"},
|
|
232
|
+
],
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"role": "user",
|
|
236
|
+
"content": [
|
|
237
|
+
{
|
|
238
|
+
"type": "tool_result",
|
|
239
|
+
"tool_use_id": "toolu_123",
|
|
240
|
+
"content": "result data",
|
|
241
|
+
},
|
|
242
|
+
],
|
|
243
|
+
},
|
|
244
|
+
],
|
|
245
|
+
}
|
|
246
|
+
prepared_body, _ = await vendor._prepare_request(body, {})
|
|
247
|
+
|
|
248
|
+
# assistant message 应包含占位 text block
|
|
249
|
+
content = prepared_body["messages"][1]["content"]
|
|
250
|
+
assert len(content) == 1
|
|
251
|
+
assert content[0]["type"] == "text"
|
|
252
|
+
assert content[0]["text"] == "[thinking]"
|
|
253
|
+
|
|
254
|
+
# user message 的 tool_result 应完整保留
|
|
255
|
+
user_content = prepared_body["messages"][2]["content"]
|
|
256
|
+
assert user_content[0]["type"] == "tool_result"
|
|
257
|
+
|
|
258
|
+
|
|
186
259
|
@pytest.mark.asyncio
|
|
187
260
|
async def test_anthropic_prepare_request_multi_turn_strips_all_thinking():
|
|
188
261
|
"""多轮对话中所有 assistant thinking blocks 均应被剥离."""
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"""熔断器状态转换单元测试."""
|
|
2
|
-
|
|
3
|
-
from coding.proxy.routing.circuit_breaker import CircuitBreaker, CircuitState
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
def test_initial_state_is_closed():
|
|
7
|
-
cb = CircuitBreaker(failure_threshold=3, recovery_timeout_seconds=30)
|
|
8
|
-
assert cb.state == CircuitState.CLOSED
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
def test_closed_to_open():
|
|
12
|
-
cb = CircuitBreaker(failure_threshold=3, recovery_timeout_seconds=30)
|
|
13
|
-
for _ in range(3):
|
|
14
|
-
cb.record_failure()
|
|
15
|
-
assert cb.state == CircuitState.OPEN
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
def test_open_rejects_requests():
|
|
19
|
-
cb = CircuitBreaker(failure_threshold=3, recovery_timeout_seconds=300)
|
|
20
|
-
for _ in range(3):
|
|
21
|
-
cb.record_failure()
|
|
22
|
-
assert not cb.can_execute()
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
def test_reset_to_closed():
|
|
26
|
-
cb = CircuitBreaker(failure_threshold=3, recovery_timeout_seconds=30)
|
|
27
|
-
for _ in range(3):
|
|
28
|
-
cb.record_failure()
|
|
29
|
-
assert cb.state == CircuitState.OPEN
|
|
30
|
-
cb.reset()
|
|
31
|
-
assert cb.state == CircuitState.CLOSED
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
def test_success_resets_failure_count():
|
|
35
|
-
cb = CircuitBreaker(failure_threshold=3, recovery_timeout_seconds=30)
|
|
36
|
-
cb.record_failure()
|
|
37
|
-
cb.record_failure()
|
|
38
|
-
cb.record_success()
|
|
39
|
-
# 成功重置失败计数,再失败两次不会触发 OPEN
|
|
40
|
-
cb.record_failure()
|
|
41
|
-
cb.record_failure()
|
|
42
|
-
assert cb.state == CircuitState.CLOSED
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
def test_get_info():
|
|
46
|
-
cb = CircuitBreaker(failure_threshold=3, recovery_timeout_seconds=30)
|
|
47
|
-
info = cb.get_info()
|
|
48
|
-
assert info["state"] == "closed"
|
|
49
|
-
assert info["failure_count"] == 0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/convert/anthropic_to_gemini.py
RENAMED
|
File without changes
|
{coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/convert/anthropic_to_openai.py
RENAMED
|
File without changes
|
{coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/convert/gemini_sse_adapter.py
RENAMED
|
File without changes
|
{coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/convert/gemini_to_anthropic.py
RENAMED
|
File without changes
|
{coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/convert/openai_to_anthropic.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/streaming/anthropic_compat.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{coding_proxy-0.1.3a1 → coding_proxy-0.1.4a1}/src/coding/proxy/vendors/copilot_token_manager.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|