Skip to content

Commit d32dd4d

Browse files
jayairAiden Cline
authored andcommitted
docs: update providers layout and Windows sidebar label
1 parent cb5a0de commit d32dd4d

4 files changed

Lines changed: 64 additions & 10 deletions

File tree

packages/web/astro.config.mjs

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,30 @@ export default defineConfig({
178178
"network",
179179
"enterprise",
180180
"troubleshooting",
181-
"windows-wsl",
181+
{
182+
label: "Windows",
183+
translations: {
184+
en: "Windows",
185+
ar: "Windows",
186+
"bs-BA": "Windows",
187+
"da-DK": "Windows",
188+
"de-DE": "Windows",
189+
"es-ES": "Windows",
190+
"fr-FR": "Windows",
191+
"it-IT": "Windows",
192+
"ja-JP": "Windows",
193+
"ko-KR": "Windows",
194+
"nb-NO": "Windows",
195+
"pl-PL": "Windows",
196+
"pt-BR": "Windows",
197+
"ru-RU": "Windows",
198+
"th-TH": "Windows",
199+
"tr-TR": "Windows",
200+
"zh-CN": "Windows",
201+
"zh-TW": "Windows",
202+
},
203+
link: "windows-wsl",
204+
},
182205
{
183206
label: "Usage",
184207
translations: {

packages/web/src/content/docs/it/providers.mdx

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ Per usare Amazon Bedrock con OpenCode:
135135

136136
2. **Configura l'autenticazione** usando uno dei seguenti metodi:
137137

138+
***
139+
138140
#### Variabili d'ambiente (Avvio rapido)
139141

140142
Imposta una di queste variabili d'ambiente mentre esegui opencode:
@@ -157,6 +159,8 @@ Per usare Amazon Bedrock con OpenCode:
157159
export AWS_REGION=us-east-1
158160
```
159161

162+
***
163+
160164
#### File di configurazione (Consigliato)
161165

162166
Per configurazione specifica del progetto o persistente, usa `opencode.json`:
@@ -184,6 +188,8 @@ Per usare Amazon Bedrock con OpenCode:
184188
Le opzioni del file di configurazione hanno la precedenza sulle variabili d'ambiente.
185189
:::
186190

191+
***
192+
187193
#### Avanzato: VPC Endpoints
188194

189195
Se stai usando VPC endpoints per Bedrock:
@@ -207,12 +213,16 @@ Per usare Amazon Bedrock con OpenCode:
207213
L'opzione `endpoint` è un alias per l'opzione generica `baseURL`, usando terminologia specifica AWS. Se vengono specificati sia `endpoint` sia `baseURL`, `endpoint` ha la precedenza.
208214
:::
209215

216+
***
217+
210218
#### Metodi di autenticazione
211219
- **`AWS_ACCESS_KEY_ID` / `AWS_SECRET_ACCESS_KEY`**: Crea un utente IAM e genera chiavi di accesso nella Console AWS
212220
- **`AWS_PROFILE`**: Usa profili nominati da `~/.aws/credentials`. Configura prima con `aws configure --profile my-profile` o `aws sso login`
213221
- **`AWS_BEARER_TOKEN_BEDROCK`**: Genera chiavi API a lungo termine dalla console Amazon Bedrock
214222
- **`AWS_WEB_IDENTITY_TOKEN_FILE` / `AWS_ROLE_ARN`**: Per EKS IRSA (IAM Roles for Service Accounts) o altri ambienti Kubernetes con federazione OIDC. Queste variabili d'ambiente vengono iniettate automaticamente da Kubernetes quando usi le annotazioni del service account.
215223

224+
***
225+
216226
#### Precedenza autenticazione
217227

218228
Amazon Bedrock usa la seguente priorità di autenticazione:
@@ -230,7 +240,8 @@ Per usare Amazon Bedrock con OpenCode:
230240
```
231241

232242
:::note
233-
Per profili di inferenza personalizzati, usa il nome del modello e del provider nella chiave e imposta la proprietà `id` all'arn. Questo assicura una cache corretta:
243+
Per profili di inferenza personalizzati, usa il nome del modello e del provider nella chiave e imposta la proprietà `id` all'arn. Questo assicura una cache corretta.
244+
:::
234245

235246
```json title="opencode.json"
236247
{
@@ -248,8 +259,6 @@ Per profili di inferenza personalizzati, usa il nome del modello e del provider
248259
}
249260
```
250261

251-
:::
252-
253262
---
254263

255264
### Anthropic
@@ -1161,6 +1170,8 @@ Per usare Kimi K2 di Moonshot AI:
11611170
/models
11621171
```
11631172

1173+
---
1174+
11641175
### MiniMax
11651176

11661177
1. Vai alla [MiniMax API Console](https://platform.minimax.io/login), crea un account e genera una chiave API.

packages/web/src/content/docs/ko/providers.mdx

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ OpenCode로 Amazon Bedrock을 사용하려면:
131131

132132
2. 다음 방법 중 하나를 사용하여 **설정**합니다:
133133

134+
---
135+
134136
### 환경 변수 (빠른 시작)
135137

136138
OpenCode를 실행하는 동안 다음 환경 변수 중 하나를 설정합니다:
@@ -153,6 +155,8 @@ OpenCode를 실행하는 동안 다음 환경 변수 중 하나를 설정합니
153155
export AWS_REGION=us-east-1
154156
```
155157

158+
---
159+
156160
#### 설정 파일 (권장)
157161

158162
프로젝트별 또는 영구 구성을 위해 `opencode.json`을 사용하십시오.
@@ -181,6 +185,8 @@ OpenCode를 실행하는 동안 다음 환경 변수 중 하나를 설정합니
181185
구성 파일 옵션은 환경 변수보다 우선 순위가 높습니다.
182186
:::
183187

188+
---
189+
184190
#### 고급: VPC 엔드포인트
185191

186192
Bedrock의 VPC 엔드포인트를 사용하는 경우:
@@ -204,13 +210,17 @@ Bedrock의 VPC 엔드포인트를 사용하는 경우:
204210
`endpoint` 옵션은 일반적인 `baseURL` 옵션의 별칭입니다. `endpoint``baseURL` 둘 다 지정된 경우 `endpoint`가 우선합니다.
205211
:::
206212

213+
---
214+
207215
#### 인증 방법
208216

209217
- **`AWS_ACCESS_KEY_ID`/`AWS_SECRET_ACCESS_KEY`**: IAM 사용자 및 AWS 콘솔에서 액세스 키 생성
210218
- **`AWS_PROFILE`**: `~/.aws/credentials`의 프로필 이름을 사용합니다. `aws configure --profile my-profile` 또는 `aws sso login`으로 먼저 구성하십시오.
211219
- **`AWS_BEARER_TOKEN_BEDROCK`**: Amazon Bedrock 콘솔에서 임시 API 키 생성
212220
- **`AWS_WEB_IDENTITY_TOKEN_FILE` / `AWS_ROLE_ARN`**: EKS IRSA (서비스 계정용 IAM 역할) 또는 다른 Kubernetes 환경의 OIDC 연동. 이 환경 변수는 서비스 계정을 사용할 때 Kubernetes에 의해 자동으로 주입됩니다.
213221

222+
---
223+
214224
#### 인증 우선 순위
215225

216226
Amazon Bedrock은 다음과 같은 인증 우선 순위를 사용합니다.
@@ -229,7 +239,8 @@ Amazon Bedrock은 다음과 같은 인증 우선 순위를 사용합니다.
229239
```
230240

231241
:::note
232-
사용자 정의 추론 프로필(custom inference profiles)의 경우, 키에 모델과 공급자 이름을 사용하고 `id` 속성에 ARN을 설정하십시오. 이렇게 하면 올바른 캐싱이 보장됩니다:
242+
사용자 정의 추론 프로필(custom inference profiles)의 경우, 키에 모델과 공급자 이름을 사용하고 `id` 속성에 ARN을 설정하십시오. 이렇게 하면 올바른 캐싱이 보장됩니다.
243+
:::
233244

234245
```json title="opencode.json"
235246
{
@@ -247,8 +258,6 @@ Amazon Bedrock은 다음과 같은 인증 우선 순위를 사용합니다.
247258
}
248259
```
249260

250-
:::
251-
252261
---
253262

254263
#### Anthropic
@@ -657,6 +666,8 @@ GitLab Duo는 GitLab의 Anthropic 프록시를 통해 기본 도구 호출 기
657666

658667
**OAuth**를 선택하면 브라우저에서 권한 부여를 요청합니다.
659668

669+
---
670+
660671
### 개인 액세스 토큰 사용
661672

662673
1. [GitLab User Settings > Access Tokens](https://gitlab.com/-/user_settings/personal_access_tokens)로 이동

packages/web/src/content/docs/providers.mdx

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ To use Amazon Bedrock with OpenCode:
135135

136136
2. **Configure authentication** using one of the following methods:
137137

138+
***
139+
138140
#### Environment Variables (Quick Start)
139141

140142
Set one of these environment variables while running opencode:
@@ -157,6 +159,8 @@ To use Amazon Bedrock with OpenCode:
157159
export AWS_REGION=us-east-1
158160
```
159161

162+
***
163+
160164
#### Configuration File (Recommended)
161165

162166
For project-specific or persistent configuration, use `opencode.json`:
@@ -184,6 +188,8 @@ To use Amazon Bedrock with OpenCode:
184188
Configuration file options take precedence over environment variables.
185189
:::
186190

191+
***
192+
187193
#### Advanced: VPC Endpoints
188194

189195
If you're using VPC endpoints for Bedrock:
@@ -207,12 +213,16 @@ To use Amazon Bedrock with OpenCode:
207213
The `endpoint` option is an alias for the generic `baseURL` option, using AWS-specific terminology. If both `endpoint` and `baseURL` are specified, `endpoint` takes precedence.
208214
:::
209215

216+
***
217+
210218
#### Authentication Methods
211219
- **`AWS_ACCESS_KEY_ID` / `AWS_SECRET_ACCESS_KEY`**: Create an IAM user and generate access keys in the AWS Console
212220
- **`AWS_PROFILE`**: Use named profiles from `~/.aws/credentials`. First configure with `aws configure --profile my-profile` or `aws sso login`
213221
- **`AWS_BEARER_TOKEN_BEDROCK`**: Generate long-term API keys from the Amazon Bedrock console
214222
- **`AWS_WEB_IDENTITY_TOKEN_FILE` / `AWS_ROLE_ARN`**: For EKS IRSA (IAM Roles for Service Accounts) or other Kubernetes environments with OIDC federation. These environment variables are automatically injected by Kubernetes when using service account annotations.
215223

224+
***
225+
216226
#### Authentication Precedence
217227

218228
Amazon Bedrock uses the following authentication priority:
@@ -230,7 +240,8 @@ To use Amazon Bedrock with OpenCode:
230240
```
231241

232242
:::note
233-
For custom inference profiles, use the model and provider name in the key and set the `id` property to the arn. This ensures correct caching:
243+
For custom inference profiles, use the model and provider name in the key and set the `id` property to the arn. This ensures correct caching.
244+
:::
234245

235246
```json title="opencode.json"
236247
{
@@ -248,8 +259,6 @@ For custom inference profiles, use the model and provider name in the key and se
248259
}
249260
```
250261

251-
:::
252-
253262
---
254263

255264
### Anthropic

0 commit comments

Comments
 (0)