feat: add additional model IDs for OpenAI Responses endpoint in Copilot

This commit is contained in:
suyao 2025-11-28 13:37:43 +08:00
parent 313be4427b
commit 534d27f37e
No known key found for this signature in database

View File

@ -18,7 +18,7 @@ export const COPILOT_DEFAULT_HEADERS = {
} as const
// Models that require the OpenAI Responses endpoint when routed through GitHub Copilot (#10560)
const COPILOT_RESPONSES_MODEL_IDS = ['gpt-5-codex']
const COPILOT_RESPONSES_MODEL_IDS = ['gpt-5-codex', 'gpt-5.1-codex', 'gpt-5.1-codex-mini']
export function isCopilotResponsesModel<M extends MinimalModel>(model: M): boolean {
const normalizedId = getLowerBaseModelName(model.id)