fix(github-copilot): auto-route GPT-5+ models to Responses API (#5877)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Christopher Tso
2026-01-19 16:30:28 +11:00
committed by GitHub
parent 6b481b5fb0
commit fc6c9cbbd2
2 changed files with 19 additions and 9 deletions

View File

@@ -524,7 +524,11 @@ export namespace ProviderTransform {
const result: Record<string, any> = {}
// openai and providers using openai package should set store to false by default.
if (input.model.providerID === "openai" || input.model.api.npm === "@ai-sdk/openai") {
if (
input.model.providerID === "openai" ||
input.model.api.npm === "@ai-sdk/openai" ||
input.model.api.npm === "@ai-sdk/github-copilot"
) {
result["store"] = false
}