Allows to translate model names like claude-sonnet-4-5-20250929 properly#180
Allows to translate model names like claude-sonnet-4-5-20250929 properly#180wonderyl wants to merge 1 commit intoericc-ch:masterfrom
Conversation
|
@wonderyl config claude code settings.json like this |
|
I don't want to use gpt models. |
|
@wonderyl You can additionally add ANTHROPIC_DEFAULT_OPUS_MODEL and CLAUDE_CODE_SUBAGENT_MODEL. Claude Code will aggressively use HAIKU_MODEL and CLAUDE_CODE_SUBAGENT_MODEL in the background, causing your quota to deplete quickly. Each time bash is called, HAIKU_MODEL is used to check whether the split script poses any risk. Complex scripts may be divided into many smaller scripts, resulting in multiple calls to HAIKU_MODEL. Some versions of claude code make two warmup calls each time they are opened. Additionally, certain tasks involving summarizing topics also use HAIKU_MODEL. |
|
Thanks for the advice @caozhiyuan. But I failed to understand how this is relevant to my PR. |
|
@wonderyl Just suggest that you configure the model yourself. This way, you'll understand the role of each model. |
|
@wonderyl You can use this branch: https://github.com/caozhiyuan/copilot-api/tree/feature/all, which contains many advanced features. The master branch hasn't been maintained for a long time. |
|
Currently, for complex tasks: gpt-5.2 thinking high is stronger than opus 4.5. |
|
Brother, is the Copilot request from Microsoft unlimited? I saw a screenshot from a Microsoft employee on X, seems like it's unlimited. If so, please ignore what I said above |
Add regex patterns to translate dated model names to their base versions: - claude-opus-4-5-YYYYMMDD -> claude-opus-4.5 - claude-sonnet-4-5-YYYYMMDD -> claude-sonnet-4.5 - claude-haiku-4-5-YYYYMMDD -> claude-haiku-4.5 Includes tests for the new model name translations. PR: ericc-ch#180
Add regex patterns to translate dated model names to their base versions: - claude-opus-4-5-YYYYMMDD -> claude-opus-4.5 - claude-sonnet-4-5-YYYYMMDD -> claude-sonnet-4.5 - claude-haiku-4-5-YYYYMMDD -> claude-haiku-4.5 Includes tests for the new model name translations. PR: ericc-ch#180
- Translate additional Claude model names with regex (PR 180) - Add header stripping and model normalization logic (PR 166) - Update tests accordingly - Minor utils cleanup - Document billing header removal in CLAUDE.md Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Auto re-authenticate on 401 (PR ericc-ch#202) - Set response object type for non-streaming (PR ericc-ch#185) - Fix tool 400 error with missing properties (PR ericc-ch#192) - Fix model name translation regex (PR ericc-ch#180) - Filter Anthropic reserved keywords from system prompts (PR ericc-ch#175) Co-authored-by: xuangong <xuangong@users.noreply.github.com> Co-authored-by: Vincenthays <Vincenthays@users.noreply.github.com> Co-authored-by: h4ai <h4ai@users.noreply.github.com> Co-authored-by: wonderyl <wonderyl@users.noreply.github.com> Co-authored-by: qihonggang <qihonggang@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Without this PR
claude-sonnet-4-5-20250929will be translated toclaude-sonnet-4instead.