docs(usage): clarify pricing model ID normalization rules (#1591)

This commit is contained in:
makoMakoGo
2026-03-21 22:59:28 +08:00
committed by GitHub
parent 72f570b99e
commit 117dbf1386
3 changed files with 48 additions and 0 deletions

View File

@@ -186,6 +186,22 @@ Set prices for each model (per million tokens):
| Cache Read Price | Price per million cache hit tokens |
| Cache Creation Price | Price per million cache creation tokens |
### Model ID Normalization Rules
Before matching pricing, CC Switch normalizes the requested model ID:
- Remove everything before the last `/`
- Remove everything after `:`
- Replace `@` with `-`
When adding pricing entries, enter the normalized Model ID rather than the full raw model name from the request.
| Raw model name | Model ID to enter | Note |
|-------|-------------------|------|
| `stepfun-ai/step-3.5-flash` | `step-3.5-flash` | Removes the provider prefix |
| `moonshotai/kimi-k2-0905:exa` | `kimi-k2-0905` | Removes the prefix and the `:` suffix |
| `gpt-5.2-codex@low` | `gpt-5.2-codex-low` | Replaces `@` with `-` |
### Operations
- **Add**: Click the "Add" button to add model pricing