Fix Codex provider routing for GitHub Copilot models

This commit is contained in:
PiEgg
2026-02-19 13:30:02 +08:00
parent 8de36d398f
commit 9789307dd6
5 changed files with 90 additions and 4 deletions

View File

@@ -80,7 +80,7 @@ class OpenAICodexProvider(LLMProvider):
def _strip_model_prefix(model: str) -> str:
if model.startswith("openai-codex/"):
if model.startswith("openai-codex/") or model.startswith("openai_codex/"):
return model.split("/", 1)[1]
return model