Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# .codecov.yml - 宽松版本
coverage:
status:
project:
default:
target: auto # 自动目标(不会因覆盖率下降而失败)
threshold: 5% # 允许覆盖率下降 5%
patch:
default:
target: 70% # 新代码至少 70% 覆盖率

comment:
layout: "reach,diff,flags,tree"
behavior: default
require_changes: false
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Provider configs are stored as JSON array in Cloudflare KV namespace `CONFIG_KV`
"apiKey": "sk-...",
"authHeader": "Authorization",
"modelMapping": {
"claude-sonnet-4-20250514": "anthropic/claude-sonnet-4"
"claude-sonnet-4-5-20250929": "anthropic/claude-sonnet-4"
}
}
]
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
A fallback proxy for Claude Code (or any Anthropic API client). When you hit rate limits or API errors, automatically routes to alternative providers.
just like [vercel](https://vercel.com/changelog/claude-code-max-via-ai-gateway-available-now-for-claude-code) and [openreouter](https://openrouter.ai/docs/guides/guides/claude-code-integration) does

[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/broven/claude-code-fallback)
## Why This Exists

When using Claude Code or other Anthropic API clients, you might encounter:
Expand Down
Loading