summaryrefslogtreecommitdiffhomepage
path: root/packages/web
diff options
context:
space:
mode:
authorJérôme Benoit <[email protected]>2025-12-08 18:27:47 +0100
committerGitHub <[email protected]>2025-12-08 11:27:47 -0600
commit52bb43eebd1d11cd2b53f40d2645c02b82432bc1 (patch)
treeeb6bac175d427655ed00b4db0e4384a0d9cbfc34 /packages/web
parente020f5355ea6c9678e7bd8a5f334f54f5023e332 (diff)
downloadopencode-52bb43eebd1d11cd2b53f40d2645c02b82432bc1.tar.gz
opencode-52bb43eebd1d11cd2b53f40d2645c02b82432bc1.zip
fix: SAP AI Core Vercel AI SDK v2 support (#5180)
Signed-off-by: Jérôme Benoit <[email protected]> Signed-off-by: Jérôme Benoit <[email protected]>
Diffstat (limited to 'packages/web')
-rw-r--r--packages/web/src/content/docs/providers.mdx10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/web/src/content/docs/providers.mdx b/packages/web/src/content/docs/providers.mdx
index 9d51057a8..8405966f7 100644
--- a/packages/web/src/content/docs/providers.mdx
+++ b/packages/web/src/content/docs/providers.mdx
@@ -947,26 +947,26 @@ SAP AI Core provides access to 40+ models from OpenAI, Anthropic, Google, Amazon
└ enter
```
- Or set the `SAP_AI_SERVICE_KEY` environment variable:
+ Or set the `AICORE_SERVICE_KEY` environment variable:
```bash
- SAP_AI_SERVICE_KEY='{"clientid":"...","clientsecret":"...","url":"...","serviceurls":{"AI_API_URL":"..."}}' opencode
+ AICORE_SERVICE_KEY='{"clientid":"...","clientsecret":"...","url":"...","serviceurls":{"AI_API_URL":"..."}}' opencode
```
Or add it to your bash profile:
```bash title="~/.bash_profile"
- export SAP_AI_SERVICE_KEY='{"clientid":"...","clientsecret":"...","url":"...","serviceurls":{"AI_API_URL":"..."}}'
+ export AICORE_SERVICE_KEY='{"clientid":"...","clientsecret":"...","url":"...","serviceurls":{"AI_API_URL":"..."}}'
```
4. Optionally set deployment ID and resource group:
```bash
- SAP_AI_DEPLOYMENT_ID=your-deployment-id SAP_AI_RESOURCE_GROUP=your-resource-group opencode
+ AICORE_DEPLOYMENT_ID=your-deployment-id AICORE_RESOURCE_GROUP=your-resource-group opencode
```
:::note
- If not set, uses deployment ID `d65d81e7c077e583` (general-purpose) and resource group `default`. Configure these for your specific setup.
+ These settings are optional and should be configured according to your SAP AI Core setup.
:::
5. Run the `/models` command to select from 40+ available models.