You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/web/src/content/docs/providers.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1890,7 +1890,7 @@ You can use any OpenAI-compatible provider with opencode. Most modern AI provide
1890
1890
```
1891
1891
1892
1892
Here are the configuration options:
1893
-
- **npm**: AI SDK package to use, `@ai-sdk/openai-compatible`for OpenAI-compatible providers
1893
+
- **npm**: AI SDK package to use, `@ai-sdk/openai-compatible`for OpenAI-compatible providers (for `/v1/chat/completions`). If your provider/model uses `/v1/responses`, use `@ai-sdk/openai`.
1894
1894
- **name**: Display name in UI.
1895
1895
- **models**: Available models.
1896
1896
- **options.baseURL**: API endpoint URL.
@@ -1957,5 +1957,5 @@ If you are having trouble with configuring a provider, check the following:
1957
1957
1958
1958
2. For custom providers, check the opencode config and:
1959
1959
- Make sure the provider ID used in the `/connect`command matches the ID in your opencode config.
1960
-
- The right npm package is used for the provider. For example, use `@ai-sdk/cerebras`for Cerebras. And for all other OpenAI-compatible providers, use `@ai-sdk/openai-compatible`.
1960
+
- The right npm package is used for the provider. For example, use `@ai-sdk/cerebras`for Cerebras. And for all other OpenAI-compatible providers, use `@ai-sdk/openai-compatible` (for `/v1/chat/completions`);if a model uses `/v1/responses`, use `@ai-sdk/openai`. For mixed setups under one provider, you can override per model via `provider.npm`.
1961
1961
- Check correct API endpoint is used in the `options.baseURL` field.
0 commit comments