mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
fix(models): extend gpt-5.3-codex forward compat to github-copilot
The codex forward-compat fallback only matched openai-codex, leaving github-copilot users without gpt-5.3-codex despite the model being available on the Copilot API. Made-with: Cursor
This commit is contained in:
committed by
Peter Steinberger
parent
564be6b402
commit
27f4ab2fb2
@@ -40,6 +40,8 @@ function cloneFirstTemplateModel(params: {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const CODEX_GPT53_ELIGIBLE_PROVIDERS = new Set(["openai-codex", "github-copilot"]);
|
||||
|
||||
function resolveOpenAICodexGpt53FallbackModel(
|
||||
provider: string,
|
||||
modelId: string,
|
||||
@@ -47,7 +49,7 @@ function resolveOpenAICodexGpt53FallbackModel(
|
||||
): Model<Api> | undefined {
|
||||
const normalizedProvider = normalizeProviderId(provider);
|
||||
const trimmedModelId = modelId.trim();
|
||||
if (normalizedProvider !== "openai-codex") {
|
||||
if (!CODEX_GPT53_ELIGIBLE_PROVIDERS.has(normalizedProvider)) {
|
||||
return undefined;
|
||||
}
|
||||
if (trimmedModelId.toLowerCase() !== OPENAI_CODEX_GPT_53_MODEL_ID) {
|
||||
|
||||
Reference in New Issue
Block a user