opencodekit 0.21.7 → 0.21.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -600,9 +600,12 @@ export const CopilotAuthPlugin: Plugin = async ({ client: sdk, directory }) => {
|
|
|
600
600
|
continue;
|
|
601
601
|
}
|
|
602
602
|
|
|
603
|
-
// Route OpenAI-compatible Copilot models through the
|
|
604
|
-
// SDK
|
|
605
|
-
|
|
603
|
+
// Route OpenAI-compatible Copilot models through the bundled
|
|
604
|
+
// @ai-sdk/github-copilot SDK. This SDK is shipped with OpenCode and
|
|
605
|
+
// supports both /chat/completions (gpt-4*, older) and /v1/responses
|
|
606
|
+
// (gpt-5.x reasoning models), so projects without local @ai-sdk/*
|
|
607
|
+
// dependencies can initialize the provider without ProviderInitError.
|
|
608
|
+
model.api.npm = "@ai-sdk/github-copilot";
|
|
606
609
|
}
|
|
607
610
|
}
|
|
608
611
|
|