mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
providers: update CF provider docs
This commit is contained in:
parent
f3364a8b28
commit
dbc5ebbda5
1 changed files with 4 additions and 4 deletions
|
|
@ -329,17 +329,17 @@ Cloudflare AI Gateway lets you proxy requests to AI providers through Cloudflare
|
|||
|
||||
1. Head over to the [Cloudflare dashboard](https://dash.cloudflare.com/), navigate to **AI** > **AI Gateway**, and create a new gateway.
|
||||
|
||||
2. Set your Account ID and Gateway name as environment variables:
|
||||
2. Set your Account ID and Gateway ID as environment variables:
|
||||
|
||||
```bash
|
||||
CLOUDFLARE_ACCOUNT_ID=your-account-id CLOUDFLARE_GATEWAY_NAME=your-gateway-name opencode
|
||||
export CLOUDFLARE_ACCOUNT_ID=your-32-character-account-id && export CLOUDFLARE_GATEWAY_ID=your-gateway-id
|
||||
```
|
||||
|
||||
Or add them to your bash profile:
|
||||
|
||||
```bash title="~/.bash_profile"
|
||||
export CLOUDFLARE_ACCOUNT_ID=your-account-id
|
||||
export CLOUDFLARE_GATEWAY_NAME=your-gateway-name
|
||||
export CLOUDFLARE_ACCOUNT_ID=your-32-character-account-id
|
||||
export CLOUDFLARE_GATEWAY_ID=your-gateway-id
|
||||
```
|
||||
|
||||
3. If your gateway has authentication enabled, also set your API token:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue