mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 11:02:17 +00:00
feat(ai): add github-copilot gpt-5.3-codex fallback closes #1853
This commit is contained in:
parent
8fc2b76827
commit
8f2af2ae7e
3 changed files with 145 additions and 48 deletions
|
|
@ -844,6 +844,20 @@ async function generateModels() {
|
|||
});
|
||||
}
|
||||
|
||||
// Add missing GitHub Copilot GPT-5.3 models until models.dev includes them.
|
||||
const copilotBaseModel = allModels.find(
|
||||
(m) => m.provider === "github-copilot" && m.id === "gpt-5.2-codex",
|
||||
);
|
||||
if (copilotBaseModel) {
|
||||
if (!allModels.some((m) => m.provider === "github-copilot" && m.id === "gpt-5.3-codex")) {
|
||||
allModels.push({
|
||||
...copilotBaseModel,
|
||||
id: "gpt-5.3-codex",
|
||||
name: "GPT-5.3 Codex",
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// OpenAI Codex (ChatGPT OAuth) models
|
||||
// NOTE: These are not fetched from models.dev; we keep a small, explicit list to avoid aliases.
|
||||
// Context window is based on observed server limits (400s above ~272k), not marketing numbers.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue