Skip to content

Commit 5f712a1

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 ebb36ba commit 5f712a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/opencode/src/provider/transform.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,9 @@ export namespace ProviderTransform {
572572
export function providerOptions(model: Provider.Model, options: { [x: string]: any }) {
573573
switch (model.api.npm) {
574574
case "@ai-sdk/github-copilot":
575+
return {
576+
["copilot" as string]: options,
577+
}
575578
case "@ai-sdk/openai":
576579
case "@ai-sdk/azure":
577580
return {

0 commit comments

Comments
 (0)