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/it/providers.mdx
+14-3Lines changed: 14 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,6 +135,8 @@ Per usare Amazon Bedrock con OpenCode:
135
135
136
136
2.**Configura l'autenticazione** usando uno dei seguenti metodi:
137
137
138
+
***
139
+
138
140
#### Variabili d'ambiente (Avvio rapido)
139
141
140
142
Imposta una di queste variabili d'ambiente mentre esegui opencode:
@@ -157,6 +159,8 @@ Per usare Amazon Bedrock con OpenCode:
157
159
export AWS_REGION=us-east-1
158
160
```
159
161
162
+
***
163
+
160
164
#### File di configurazione (Consigliato)
161
165
162
166
Per configurazione specifica del progetto o persistente, usa `opencode.json`:
@@ -184,6 +188,8 @@ Per usare Amazon Bedrock con OpenCode:
184
188
Le opzioni del file di configurazione hanno la precedenza sulle variabili d'ambiente.
185
189
:::
186
190
191
+
***
192
+
187
193
#### Avanzato: VPC Endpoints
188
194
189
195
Se stai usando VPC endpoints per Bedrock:
@@ -207,12 +213,16 @@ Per usare Amazon Bedrock con OpenCode:
207
213
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.
208
214
:::
209
215
216
+
***
217
+
210
218
#### Metodi di autenticazione
211
219
-**`AWS_ACCESS_KEY_ID` / `AWS_SECRET_ACCESS_KEY`**: Crea un utente IAM e genera chiavi di accesso nella Console AWS
212
220
-**`AWS_PROFILE`**: Usa profili nominati da `~/.aws/credentials`. Configura prima con `aws configure --profile my-profile` o `aws sso login`
213
221
-**`AWS_BEARER_TOKEN_BEDROCK`**: Genera chiavi API a lungo termine dalla console Amazon Bedrock
214
222
-**`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.
215
223
224
+
***
225
+
216
226
#### Precedenza autenticazione
217
227
218
228
Amazon Bedrock usa la seguente priorità di autenticazione:
@@ -230,7 +240,8 @@ Per usare Amazon Bedrock con OpenCode:
230
240
```
231
241
232
242
:::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
+
:::
234
245
235
246
```json title="opencode.json"
236
247
{
@@ -248,8 +259,6 @@ Per profili di inferenza personalizzati, usa il nome del modello e del provider
248
259
}
249
260
```
250
261
251
-
:::
252
-
253
262
---
254
263
255
264
### Anthropic
@@ -1161,6 +1170,8 @@ Per usare Kimi K2 di Moonshot AI:
1161
1170
/models
1162
1171
```
1163
1172
1173
+
---
1174
+
1164
1175
### MiniMax
1165
1176
1166
1177
1. Vai alla [MiniMax API Console](https://platform.minimax.io/login), crea un account e genera una chiave API.
@@ -153,6 +155,8 @@ OpenCode를 실행하는 동안 다음 환경 변수 중 하나를 설정합니
153
155
export AWS_REGION=us-east-1
154
156
```
155
157
158
+
---
159
+
156
160
#### 설정 파일 (권장)
157
161
158
162
프로젝트별 또는 영구 구성을 위해 `opencode.json`을 사용하십시오.
@@ -181,6 +185,8 @@ OpenCode를 실행하는 동안 다음 환경 변수 중 하나를 설정합니
181
185
구성 파일 옵션은 환경 변수보다 우선 순위가 높습니다.
182
186
:::
183
187
188
+
---
189
+
184
190
#### 고급: VPC 엔드포인트
185
191
186
192
Bedrock의 VPC 엔드포인트를 사용하는 경우:
@@ -204,13 +210,17 @@ Bedrock의 VPC 엔드포인트를 사용하는 경우:
204
210
`endpoint` 옵션은 일반적인 `baseURL` 옵션의 별칭입니다. `endpoint`와 `baseURL` 둘 다 지정된 경우 `endpoint`가 우선합니다.
205
211
:::
206
212
213
+
---
214
+
207
215
#### 인증 방법
208
216
209
217
-**`AWS_ACCESS_KEY_ID`/`AWS_SECRET_ACCESS_KEY`**: IAM 사용자 및 AWS 콘솔에서 액세스 키 생성
210
218
-**`AWS_PROFILE`**: `~/.aws/credentials`의 프로필 이름을 사용합니다. `aws configure --profile my-profile` 또는 `aws sso login`으로 먼저 구성하십시오.
211
219
-**`AWS_BEARER_TOKEN_BEDROCK`**: Amazon Bedrock 콘솔에서 임시 API 키 생성
212
220
-**`AWS_WEB_IDENTITY_TOKEN_FILE` / `AWS_ROLE_ARN`**: EKS IRSA (서비스 계정용 IAM 역할) 또는 다른 Kubernetes 환경의 OIDC 연동. 이 환경 변수는 서비스 계정을 사용할 때 Kubernetes에 의해 자동으로 주입됩니다.
213
221
222
+
---
223
+
214
224
#### 인증 우선 순위
215
225
216
226
Amazon Bedrock은 다음과 같은 인증 우선 순위를 사용합니다.
@@ -229,7 +239,8 @@ Amazon Bedrock은 다음과 같은 인증 우선 순위를 사용합니다.
229
239
```
230
240
231
241
:::note
232
-
사용자 정의 추론 프로필(custom inference profiles)의 경우, 키에 모델과 공급자 이름을 사용하고 `id` 속성에 ARN을 설정하십시오. 이렇게 하면 올바른 캐싱이 보장됩니다:
242
+
사용자 정의 추론 프로필(custom inference profiles)의 경우, 키에 모델과 공급자 이름을 사용하고 `id` 속성에 ARN을 설정하십시오. 이렇게 하면 올바른 캐싱이 보장됩니다.
243
+
:::
233
244
234
245
```json title="opencode.json"
235
246
{
@@ -247,8 +258,6 @@ Amazon Bedrock은 다음과 같은 인증 우선 순위를 사용합니다.
247
258
}
248
259
```
249
260
250
-
:::
251
-
252
261
---
253
262
254
263
#### Anthropic
@@ -657,6 +666,8 @@ GitLab Duo는 GitLab의 Anthropic 프록시를 통해 기본 도구 호출 기
657
666
658
667
**OAuth**를 선택하면 브라우저에서 권한 부여를 요청합니다.
659
668
669
+
---
670
+
660
671
### 개인 액세스 토큰 사용
661
672
662
673
1.[GitLab User Settings > Access Tokens](https://gitlab.com/-/user_settings/personal_access_tokens)로 이동
Copy file name to clipboardExpand all lines: packages/web/src/content/docs/providers.mdx
+12-3Lines changed: 12 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,6 +135,8 @@ To use Amazon Bedrock with OpenCode:
135
135
136
136
2.**Configure authentication** using one of the following methods:
137
137
138
+
***
139
+
138
140
#### Environment Variables (Quick Start)
139
141
140
142
Set one of these environment variables while running opencode:
@@ -157,6 +159,8 @@ To use Amazon Bedrock with OpenCode:
157
159
export AWS_REGION=us-east-1
158
160
```
159
161
162
+
***
163
+
160
164
#### Configuration File (Recommended)
161
165
162
166
For project-specific or persistent configuration, use `opencode.json`:
@@ -184,6 +188,8 @@ To use Amazon Bedrock with OpenCode:
184
188
Configuration file options take precedence over environment variables.
185
189
:::
186
190
191
+
***
192
+
187
193
#### Advanced: VPC Endpoints
188
194
189
195
If you're using VPC endpoints for Bedrock:
@@ -207,12 +213,16 @@ To use Amazon Bedrock with OpenCode:
207
213
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.
208
214
:::
209
215
216
+
***
217
+
210
218
#### Authentication Methods
211
219
-**`AWS_ACCESS_KEY_ID` / `AWS_SECRET_ACCESS_KEY`**: Create an IAM user and generate access keys in the AWS Console
212
220
-**`AWS_PROFILE`**: Use named profiles from `~/.aws/credentials`. First configure with `aws configure --profile my-profile` or `aws sso login`
213
221
-**`AWS_BEARER_TOKEN_BEDROCK`**: Generate long-term API keys from the Amazon Bedrock console
214
222
-**`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.
215
223
224
+
***
225
+
216
226
#### Authentication Precedence
217
227
218
228
Amazon Bedrock uses the following authentication priority:
@@ -230,7 +240,8 @@ To use Amazon Bedrock with OpenCode:
230
240
```
231
241
232
242
:::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
+
:::
234
245
235
246
```json title="opencode.json"
236
247
{
@@ -248,8 +259,6 @@ For custom inference profiles, use the model and provider name in the key and se
0 commit comments