Skip to content

Commit 4a7809f

Browse files
committed
add proper variant support to copilot
1 parent 9d1803d commit 4a7809f

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

packages/opencode/src/provider/transform.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,18 @@ export namespace ProviderTransform {
349349
case "@ai-sdk/gateway":
350350
return Object.fromEntries(OPENAI_EFFORTS.map((effort) => [effort, { reasoningEffort: effort }]))
351351

352+
case "@ai-sdk/github-copilot":
353+
return Object.fromEntries(
354+
WIDELY_SUPPORTED_EFFORTS.map((effort) => [
355+
effort,
356+
{
357+
reasoningEffort: effort,
358+
reasoningSummary: "auto",
359+
include: ["reasoning.encrypted_content"],
360+
},
361+
]),
362+
)
363+
352364
case "@ai-sdk/cerebras":
353365
// https://v5.ai-sdk.dev/providers/ai-sdk-providers/cerebras
354366
case "@ai-sdk/togetherai":

0 commit comments

Comments
 (0)