Skip to content

Commit 2f58f80

Browse files
christsoclaude
andcommitted
refactor: use api.npm instead of providerID for github-copilot store check
Check api.npm === "@ai-sdk/github-copilot" instead of providerID.startsWith("github-copilot") for consistency with the existing openai check pattern. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 894861c commit 2f58f80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/opencode/src/provider/transform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ export namespace ProviderTransform {
487487
if (
488488
input.model.providerID === "openai" ||
489489
input.model.api.npm === "@ai-sdk/openai" ||
490-
input.model.providerID.startsWith("github-copilot")
490+
input.model.api.npm === "@ai-sdk/github-copilot"
491491
) {
492492
result["store"] = false
493493
}

0 commit comments

Comments
 (0)