mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-10 20:53:36 +00:00
add proper variant support to copilot
This commit is contained in:
parent
9d1803d000
commit
4a7809f600
1 changed files with 12 additions and 0 deletions
|
|
@ -349,6 +349,18 @@ export namespace ProviderTransform {
|
|||
case "@ai-sdk/gateway":
|
||||
return Object.fromEntries(OPENAI_EFFORTS.map((effort) => [effort, { reasoningEffort: effort }]))
|
||||
|
||||
case "@ai-sdk/github-copilot":
|
||||
return Object.fromEntries(
|
||||
WIDELY_SUPPORTED_EFFORTS.map((effort) => [
|
||||
effort,
|
||||
{
|
||||
reasoningEffort: effort,
|
||||
reasoningSummary: "auto",
|
||||
include: ["reasoning.encrypted_content"],
|
||||
},
|
||||
]),
|
||||
)
|
||||
|
||||
case "@ai-sdk/cerebras":
|
||||
// https://v5.ai-sdk.dev/providers/ai-sdk-providers/cerebras
|
||||
case "@ai-sdk/togetherai":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue