Skip to content

Commit 82ca0a3

Browse files
SteffenDEclaude
andcommitted
fix(copilot): use copilot key for provider options
The new copilot provider looks for providerOptions.copilot, not providerOptions.openaiCompatible. This ensures that custom options are passed through. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent a47d16c commit 82ca0a3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/opencode/src/provider/transform.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export namespace ProviderTransform {
2020
function sdkKey(npm: string): string | undefined {
2121
switch (npm) {
2222
case "@ai-sdk/github-copilot":
23+
return "copilot"
2324
case "@ai-sdk/openai":
2425
case "@ai-sdk/azure":
2526
return "openai"

0 commit comments

Comments
 (0)