mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-09 14:59:27 +08:00
feat: add additional model IDs for OpenAI Responses endpoint in Copilot
This commit is contained in:
parent
313be4427b
commit
534d27f37e
@ -18,7 +18,7 @@ export const COPILOT_DEFAULT_HEADERS = {
|
|||||||
} as const
|
} as const
|
||||||
|
|
||||||
// Models that require the OpenAI Responses endpoint when routed through GitHub Copilot (#10560)
|
// 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 {
|
export function isCopilotResponsesModel<M extends MinimalModel>(model: M): boolean {
|
||||||
const normalizedId = getLowerBaseModelName(model.id)
|
const normalizedId = getLowerBaseModelName(model.id)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user