summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authoropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-02-10 20:03:24 +0000
committeropencode <[email protected]>2026-02-10 20:22:31 +0000
commit4f6b9297840d242bdee25691959cd1ccfcd732fa (patch)
treef120f2b21cb8e21d31604b92aecc6f824c747d6e /packages
parent55119559b320535253e67925d27ecad2466d50ed (diff)
downloadopencode-4f6b9297840d242bdee25691959cd1ccfcd732fa.tar.gz
opencode-4f6b9297840d242bdee25691959cd1ccfcd732fa.zip
chore: generate
Diffstat (limited to 'packages')
-rw-r--r--packages/web/src/content/docs/bs/github.mdx22
-rw-r--r--packages/web/src/content/docs/bs/gitlab.mdx22
-rw-r--r--packages/web/src/content/docs/bs/index.mdx28
-rw-r--r--packages/web/src/content/docs/bs/models.mdx10
-rw-r--r--packages/web/src/content/docs/bs/permissions.mdx2
-rw-r--r--packages/web/src/content/docs/bs/providers.mdx438
-rw-r--r--packages/web/src/content/docs/bs/troubleshooting.mdx4
-rw-r--r--packages/web/src/content/docs/bs/tui.mdx4
-rw-r--r--packages/web/src/content/docs/fr/github.mdx22
-rw-r--r--packages/web/src/content/docs/fr/gitlab.mdx6
-rw-r--r--packages/web/src/content/docs/fr/index.mdx10
-rw-r--r--packages/web/src/content/docs/fr/providers.mdx150
-rw-r--r--packages/web/src/content/docs/ja/cli.mdx48
-rw-r--r--packages/web/src/content/docs/ja/github.mdx22
-rw-r--r--packages/web/src/content/docs/ja/gitlab.mdx6
-rw-r--r--packages/web/src/content/docs/ja/index.mdx10
-rw-r--r--packages/web/src/content/docs/ja/providers.mdx150
-rw-r--r--packages/web/src/content/docs/ko/github.mdx22
-rw-r--r--packages/web/src/content/docs/ko/gitlab.mdx6
-rw-r--r--packages/web/src/content/docs/ko/providers.mdx136
-rw-r--r--packages/web/src/content/docs/zh-cn/mcp-servers.mdx16
21 files changed, 569 insertions, 565 deletions
diff --git a/packages/web/src/content/docs/bs/github.mdx b/packages/web/src/content/docs/bs/github.mdx
index f53076518..ff31be8e3 100644
--- a/packages/web/src/content/docs/bs/github.mdx
+++ b/packages/web/src/content/docs/bs/github.mdx
@@ -68,7 +68,7 @@ Ili ga možete postaviti ručno.
model: anthropic/claude-sonnet-4-20250514
# share: true
# github_token: xxxx
- ```
+```
3. **Sačuvaj API ključeve u tajne**
U **postavkama** organizacije ili projekta proširite **Tajne i varijable** na lijevoj strani i odaberite **Radnje**. I dodajte potrebne API ključeve.
@@ -85,12 +85,12 @@ Ili ga možete postaviti ručno.
Alternativno, možete koristiti GitHub Action runner [ugrađeni `GITHUB_TOKEN`](https://docs.github.com/en/actions/tutorials/authenticate-with-github_token) bez instaliranja OpenCode GitHub aplikacije. Samo se pobrinite da date potrebna odobrenja u svom toku rada:
```yaml
- permissions:
- id-token: write
- contents: write
- pull-requests: write
- issues: write
- ```
+permissions:
+ id-token: write
+ contents: write
+ pull-requests: write
+ issues: write
+```
Također možete koristiti [Personal Access Tokens](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens)(PAT) ako želite.
@@ -272,7 +272,7 @@ Evo nekoliko primjera kako možete koristiti OpenCode u GitHub.
```
/opencode explain this issue
- ```
+```
OpenCode će pročitati cijelu temu, uključujući sve komentare, i odgovoriti s jasnim objašnjenjem.
@@ -281,7 +281,7 @@ OpenCode će pročitati cijelu temu, uključujući sve komentare, i odgovoriti s
```
/opencode fix this
- ```
+```
I OpenCode će kreirati novu granu, implementirati promjene i otvoriti PR sa promjenama.
@@ -290,7 +290,7 @@ I OpenCode će kreirati novu granu, implementirati promjene i otvoriti PR sa pro
```
Delete the attachment from S3 when the note is removed /oc
- ```
+```
OpenCode će implementirati traženu promjenu i posvetiti je istom PR-u.
@@ -300,7 +300,7 @@ OpenCode će implementirati traženu promjenu i posvetiti je istom PR-u.
```
[Comment on specific lines in Files tab]
/oc add error handling here
- ```
+```
Kada komentarišete određene linije, OpenCode prima:
diff --git a/packages/web/src/content/docs/bs/gitlab.mdx b/packages/web/src/content/docs/bs/gitlab.mdx
index 09302140b..aea7cbf8f 100644
--- a/packages/web/src/content/docs/bs/gitlab.mdx
+++ b/packages/web/src/content/docs/bs/gitlab.mdx
@@ -29,14 +29,14 @@ Ovdje koristimo CI/CD komponentu kreiranu u zajednici za OpenCode — [nagyv/git
2. Dodajte sljedeće u svoju `.gitlab-ci.yml` datoteku.
```yaml title=".gitlab-ci.yml"
- include:
- - component: $CI_SERVER_FQDN/nagyv/gitlab-opencode/opencode@2
- inputs:
- config_dir: ${CI_PROJECT_DIR}/opencode-config
- auth_json: $OPENCODE_AUTH_JSON # The variable name for your OpenCode authentication JSON
- command: optional-custom-command
- message: "Your prompt here"
- ```
+include:
+ - component: $CI_SERVER_FQDN/nagyv/gitlab-opencode/opencode@2
+ inputs:
+ config_dir: ${CI_PROJECT_DIR}/opencode-config
+ auth_json: $OPENCODE_AUTH_JSON # The variable name for your OpenCode authentication JSON
+ command: optional-custom-command
+ message: "Your prompt here"
+```
Za više unosa i slučajeva upotrebe [pogledajte dokumente docs](https://gitlab.com/explore/catalog/nagyv/gitlab-opencode) za ovu komponentu.
@@ -165,7 +165,7 @@ Možete konfigurirati da koristite drugu frazu okidača od `@opencode`.
```
@opencode explain this issue
- ```
+```
OpenCode će pročitati problem i odgovoriti jasnim objašnjenjem.
@@ -174,7 +174,7 @@ OpenCode će pročitati problem i odgovoriti jasnim objašnjenjem.
```
@opencode fix this
- ```
+```
OpenCode će kreirati novu granu, implementirati promjene i otvoriti zahtjev za spajanje s promjenama.
@@ -183,6 +183,6 @@ OpenCode će kreirati novu granu, implementirati promjene i otvoriti zahtjev za
```
@opencode review this merge request
- ```
+```
OpenCode će pregledati zahtjev za spajanje i dati povratne informacije.
diff --git a/packages/web/src/content/docs/bs/index.mdx b/packages/web/src/content/docs/bs/index.mdx
index 1de397c33..9cb9a5c15 100644
--- a/packages/web/src/content/docs/bs/index.mdx
+++ b/packages/web/src/content/docs/bs/index.mdx
@@ -74,7 +74,7 @@ Također ga možete instalirati pomoću sljedećih naredbi:
```bash
brew install anomalyco/tap/opencode
- ```
+```
> Preporučujemo korištenje OpenCode tap za najnovija izdanja. Službenu formulu `brew install opencode` održava Homebrew tim i ažurira se rjeđe.
@@ -82,7 +82,7 @@ Također ga možete instalirati pomoću sljedećih naredbi:
```bash
paru -S opencode-bin
- ```
+```
#### Windows
@@ -94,31 +94,31 @@ Za najbolje iskustvo na Windows-u preporučujemo korištenje [Windows Subsystem
```bash
choco install opencode
- ```
+```
- **Upotreba Scoop-a**
```bash
scoop install opencode
- ```
+```
- **Korištenje NPM-a**
```bash
npm install -g opencode-ai
- ```
+```
- **Korišćenje Mise**
```bash
mise use -g github:anomalyco/opencode
- ```
+```
- **Korišćenje Dockera**
```bash
docker run -it --rm ghcr.io/anomalyco/opencode
- ```
+```
Podrška za instaliranje OpenCode na Windows koristeći Bun je trenutno u toku.
Također možete preuzeti binarnu datoteku iz [Releases](https://github.com/anomalyco/opencode/releases).
@@ -136,7 +136,7 @@ tim.
```txt
/connect
- ```
+```
2. Prijavite se, dodajte svoje detalje naplate i kopirajte svoj API ključ.
3. Zalijepite svoj API ključ.
@@ -146,7 +146,7 @@ tim.
└ enter
- ```
+```
Alternativno, možete odabrati jednog od drugih provajdera. [Saznajte više](/docs/providers#directory).
@@ -218,7 +218,7 @@ Možete zamoliti OpenCode da vašem projektu doda nove funkcije. Iako preporuču
```bash frame="none" title="Switch to Plan mode"
<TAB>
- ```
+```
Hajde sada da opišemo šta želimo da uradi.
@@ -226,7 +226,7 @@ Hajde sada da opišemo šta želimo da uradi.
When a user deletes a note, we'd like to flag it as deleted in the database.
Then create a screen that shows all the recently deleted notes.
From this screen, the user can undelete a note or permanently delete it.
- ```
+```
Želite da date OpenCode dovoljno detalja da razumete šta želite. Pomaže
da razgovarate s njim kao da razgovarate sa mlađim programerom u svom timu.
@@ -241,7 +241,7 @@ Dajte OpenCode dosta konteksta i primjera koji će mu pomoći da razumije šta v
```txt frame="none"
We'd like to design this new screen using a design I've used before.
[Image #1] Take a look at this image and use it as a reference.
- ```
+```
:::tip
Prevucite i ispustite slike u terminal da biste ih dodali u prompt.
@@ -255,13 +255,13 @@ učinite to povlačenjem i ispuštanjem slike u terminal.
```bash frame="none"
<TAB>
- ```
+```
I tražeći od njega da napravi promjene.
```bash frame="none"
Sounds good! Go ahead and make the changes.
- ```
+```
---
diff --git a/packages/web/src/content/docs/bs/models.mdx b/packages/web/src/content/docs/bs/models.mdx
index 8fbaf2df3..32d4d9b1b 100644
--- a/packages/web/src/content/docs/bs/models.mdx
+++ b/packages/web/src/content/docs/bs/models.mdx
@@ -192,10 +192,10 @@ Kada se OpenCode pokrene, on provjerava modele u sljedećem prioritetnom redosli
2. Lista modela u OpenCode konfiguraciji.
```json title="opencode.json"
- {
- "$schema": "https://opencode.ai/config.json",
- "model": "anthropic/claude-sonnet-4-20250514"
- }
- ```
+{
+ "$schema": "https://opencode.ai/config.json",
+ "model": "anthropic/claude-sonnet-4-20250514"
+}
+```
Format ovdje je `provider/model`. 3. Posljednji korišteni model. 4. Prvi model koji koristi interni prioritet.
diff --git a/packages/web/src/content/docs/bs/permissions.mdx b/packages/web/src/content/docs/bs/permissions.mdx
index e1d7870de..b581eee6e 100644
--- a/packages/web/src/content/docs/bs/permissions.mdx
+++ b/packages/web/src/content/docs/bs/permissions.mdx
@@ -67,7 +67,7 @@ Za većinu dozvola, možete koristiti objekt za primjenu različitih radnji na o
}
```
-Pravila se procjenjuju na osnovu podudaranja uzorka, pri čemu **pobjeđuje **poslednje odgovarajuće pravilo\*_. Uobičajeni obrazac je da se prvo pravilo `"*"` stavi sveobuhvatno, a poslije njega konkretnija pravila.
+Pravila se procjenjuju na osnovu podudaranja uzorka, pri čemu **pobjeđuje **poslednje odgovarajuće pravilo\*\_. Uobičajeni obrazac je da se prvo pravilo `"*"` stavi sveobuhvatno, a poslije njega konkretnija pravila.
### Zamjenski znakovi
diff --git a/packages/web/src/content/docs/bs/providers.mdx b/packages/web/src/content/docs/bs/providers.mdx
index 7c8a35535..2a1989c21 100644
--- a/packages/web/src/content/docs/bs/providers.mdx
+++ b/packages/web/src/content/docs/bs/providers.mdx
@@ -61,7 +61,7 @@ Ako ste novi, preporučujemo da počnete sa OpenCode Zen.
```txt
/connect
- ```
+```
2. Prijavite se, dodajte svoje detalje naplate i kopirajte svoj API ključ.
@@ -72,13 +72,13 @@ Ako ste novi, preporučujemo da počnete sa OpenCode Zen.
└ enter
- ```
+```
4. Pokrenite `/models` u TUI da vidite listu modela koje preporučujemo.
```txt
/models
- ```
+```
Radi kao i svaki drugi provajder u OpenCode i potpuno je opcionalan za korištenje.
@@ -103,7 +103,7 @@ Ne vidite provajdera ovdje? Pošaljite PR.
```txt
/connect
- ```
+```
3. Unesite svoj 302.AI API ključ.
@@ -112,13 +112,13 @@ Ne vidite provajdera ovdje? Pošaljite PR.
└ enter
- ```
+```
4. Pokrenite naredbu `/models` da odaberete model.
```txt
/models
- ```
+```
---
@@ -148,32 +148,32 @@ Da biste koristili Amazon Bedrock s OpenCode:
# Option 3: Using Bedrock bearer token
AWS_BEARER_TOKEN_BEDROCK=XXX opencode
- ```
+```
Ili ih dodajte na svoj bash profil:
```bash title="~/.bash_profile"
export AWS_PROFILE=my-dev-profile
export AWS_REGION=us-east-1
- ```
+```
#### Konfiguracijski fajl (preporučeno)
Za konfiguraciju specifičnu za projekat ili trajnu konfiguraciju, koristite `opencode.json`:
```json title="opencode.json"
- {
- "$schema": "https://opencode.ai/config.json",
- "provider": {
- "amazon-bedrock": {
- "options": {
- "region": "us-east-1",
- "profile": "my-aws-profile"
- }
- }
- }
- }
- ```
+{
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "amazon-bedrock": {
+ "options": {
+ "region": "us-east-1",
+ "profile": "my-aws-profile"
+ }
+ }
+ }
+}
+```
**Dostupne opcije:**
@@ -190,19 +190,19 @@ Opcije konfiguracijske datoteke imaju prednost nad varijablama okruženja.
Ako koristite VPC krajnje tačke za Bedrock:
```json title="opencode.json"
- {
- "$schema": "https://opencode.ai/config.json",
- "provider": {
- "amazon-bedrock": {
- "options": {
- "region": "us-east-1",
- "profile": "production",
- "endpoint": "https://bedrock-runtime.us-east-1.vpce-xxxxx.amazonaws.com"
- }
- }
- }
- }
- ```
+{
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "amazon-bedrock": {
+ "options": {
+ "region": "us-east-1",
+ "profile": "production",
+ "endpoint": "https://bedrock-runtime.us-east-1.vpce-xxxxx.amazonaws.com"
+ }
+ }
+ }
+}
+```
:::note
Opcija `endpoint` je pseudonim za generičku opciju `baseURL`, koristeći terminologiju specifičnu za AWS. Ako su specificirani i `endpoint` i `baseURL`, `endpoint` ima prednost.
@@ -230,7 +230,7 @@ Kada se postavi token nosioca (putem `/connect` ili `AWS_BEARER_TOKEN_BEDROCK`),
```txt
/models
- ```
+```
:::note
Za prilagođene profile zaključivanja, koristite ime modela i dobavljača u ključu i postavite svojstvo `id` na arn. Ovo osigurava ispravno keširanje:
@@ -261,7 +261,7 @@ Za prilagođene profile zaključivanja, koristite ime modela i dobavljača u klj
```txt
/connect
- ```
+```
2. Ovdje možete odabrati opciju **Claude Pro/Max** i ona će otvoriti vaš pretraživač
i traži od vas da se autentifikujete.
@@ -273,13 +273,13 @@ Za prilagođene profile zaključivanja, koristite ime modela i dobavljača u klj
│ Create an API Key
│ Manually enter API Key
- ```
+```
3. Sada bi svi Anthropic modeli trebali biti dostupni kada koristite naredbu `/models`.
```txt
/models
- ```
+```
:::info
[Anthropic] (https://anthropic.com) službeno ne podržava korištenje vaše Claude Pro/Max pretplate u OpenCode.
@@ -313,7 +313,7 @@ Ako naiđete na greške "Žao mi je, ali ne mogu pomoći s tim zahtjevom", poku�
```txt
/connect
- ```
+```
4. Unesite svoj API ključ.
@@ -322,25 +322,25 @@ Ako naiđete na greške "Žao mi je, ali ne mogu pomoći s tim zahtjevom", poku�
└ enter
- ```
+```
5. Postavite ime vašeg resursa kao varijablu okruženja:
```bash
AZURE_RESOURCE_NAME=XXX opencode
- ```
+```
Ili ga dodajte na svoj bash profil:
```bash title="~/.bash_profile"
export AZURE_RESOURCE_NAME=XXX
- ```
+```
6. Pokrenite naredbu `/models` da odaberete svoj raspoređeni model.
```txt
/models
- ```
+```
---
@@ -360,7 +360,7 @@ Ili ga dodajte na svoj bash profil:
```txt
/connect
- ```
+```
4. Unesite svoj API ključ.
@@ -369,25 +369,25 @@ Ili ga dodajte na svoj bash profil:
└ enter
- ```
+```
5. Postavite ime vašeg resursa kao varijablu okruženja:
```bash
AZURE_COGNITIVE_SERVICES_RESOURCE_NAME=XXX opencode
- ```
+```
Ili ga dodajte na svoj bash profil:
```bash title="~/.bash_profile"
export AZURE_COGNITIVE_SERVICES_RESOURCE_NAME=XXX
- ```
+```
6. Pokrenite naredbu `/models` da odaberete svoj raspoređeni model.
```txt
/models
- ```
+```
---
@@ -399,7 +399,7 @@ Ili ga dodajte na svoj bash profil:
```txt
/connect
- ```
+```
3. Unesite svoj Baseten API ključ.
@@ -408,13 +408,13 @@ Ili ga dodajte na svoj bash profil:
└ enter
- ```
+```
4. Pokrenite naredbu `/models` da odaberete model.
```txt
/models
- ```
+```
---
@@ -426,7 +426,7 @@ Ili ga dodajte na svoj bash profil:
```txt
/connect
- ```
+```
3. Unesite svoj Cerebras API ključ.
@@ -435,13 +435,13 @@ Ili ga dodajte na svoj bash profil:
└ enter
- ```
+```
4. Pokrenite naredbu `/models` da odaberete model kao što je _Qwen 3 Coder 480B_.
```txt
/models
- ```
+```
---
@@ -456,13 +456,13 @@ Cloudflare AI Gateway vam omogućava da pristupite modelima iz OpenAI, Anthropic
```bash title="~/.bash_profile"
export CLOUDFLARE_ACCOUNT_ID=your-32-character-account-id
export CLOUDFLARE_GATEWAY_ID=your-gateway-id
- ```
+```
3. Pokrenite naredbu `/connect` i potražite **Cloudflare AI Gateway**.
```txt
/connect
- ```
+```
4. Unesite svoj Cloudflare API token.
@@ -471,35 +471,35 @@ Cloudflare AI Gateway vam omogućava da pristupite modelima iz OpenAI, Anthropic
└ enter
- ```
+```
Ili ga postavite kao varijablu okruženja.
```bash title="~/.bash_profile"
export CLOUDFLARE_API_TOKEN=your-api-token
- ```
+```
5. Pokrenite naredbu `/models` da odaberete model.
```txt
/models
- ```
+```
Također možete dodati modele kroz svoju opencode konfiguraciju.
```json title="opencode.json"
- {
- "$schema": "https://opencode.ai/config.json",
- "provider": {
- "cloudflare-ai-gateway": {
- "models": {
- "openai/gpt-4o": {},
- "anthropic/claude-sonnet-4": {}
- }
- }
- }
- }
- ```
+{
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "cloudflare-ai-gateway": {
+ "models": {
+ "openai/gpt-4o": {},
+ "anthropic/claude-sonnet-4": {}
+ }
+ }
+ }
+}
+```
---
@@ -511,7 +511,7 @@ Također možete dodati modele kroz svoju opencode konfiguraciju.
```txt
/connect
- ```
+```
3. Unesite svoj Cortecs API ključ.
@@ -520,13 +520,13 @@ Također možete dodati modele kroz svoju opencode konfiguraciju.
└ enter
- ```
+```
4. Pokrenite naredbu `/models` da odaberete model kao što je _Kimi K2 Instruct_.
```txt
/models
- ```
+```
---
@@ -538,7 +538,7 @@ Također možete dodati modele kroz svoju opencode konfiguraciju.
```txt
/connect
- ```
+```
3. Unesite svoj DeepSeek API ključ.
@@ -547,13 +547,13 @@ Također možete dodati modele kroz svoju opencode konfiguraciju.
└ enter
- ```
+```
4. Pokrenite naredbu `/models` da odaberete DeepSeek model kao što je _DeepSeek Reasoner_.
```txt
/models
- ```
+```
---
@@ -565,7 +565,7 @@ Također možete dodati modele kroz svoju opencode konfiguraciju.
```txt
/connect
- ```
+```
3. Unesite svoj Deep Infra API ključ.
@@ -574,13 +574,13 @@ Također možete dodati modele kroz svoju opencode konfiguraciju.
└ enter
- ```
+```
4. Pokrenite naredbu `/models` da odaberete model.
```txt
/models
- ```
+```
---
@@ -592,7 +592,7 @@ Također možete dodati modele kroz svoju opencode konfiguraciju.
```txt
/connect
- ```
+```
3. Unesite svoj Firmware API ključ.
@@ -601,13 +601,13 @@ Također možete dodati modele kroz svoju opencode konfiguraciju.
└ enter
- ```
+```
4. Pokrenite naredbu `/models` da odaberete model.
```txt
/models
- ```
+```
---
@@ -619,7 +619,7 @@ Također možete dodati modele kroz svoju opencode konfiguraciju.
```txt
/connect
- ```
+```
3. Unesite svoj Fireworks AI API ključ.
@@ -628,13 +628,13 @@ Također možete dodati modele kroz svoju opencode konfiguraciju.
└ enter
- ```
+```
4. Pokrenite naredbu `/models` da odaberete model kao što je _Kimi K2 Instruct_.
```txt
/models
- ```
+```
---
@@ -646,7 +646,7 @@ GitLab Duo pruža agentsko ćaskanje sa AI-om sa izvornim mogućnostima pozivanj
```txt
/connect
- ```
+```
2. Odaberite svoj način autentifikacije:
@@ -656,7 +656,7 @@ GitLab Duo pruža agentsko ćaskanje sa AI-om sa izvornim mogućnostima pozivanj
│ OAuth (Recommended)
│ Personal Access Token
- ```
+```
#### Korištenje OAuth-a (preporučeno)
@@ -674,7 +674,7 @@ Odaberite **OAuth** i vaš pretraživač će se otvoriti za autorizaciju.
```txt
/models
- ```
+```
Dostupna su tri modela bazirana na Claudeu:
@@ -804,7 +804,7 @@ Neki modeli moraju biti ručno omogućeni u vašim [postavkama GitHub Copilot](h
```txt
/connect
- ```
+```
2. Idite na [github.com/login/device](https://github.com/login/device) i unesite kod.
@@ -816,13 +816,13 @@ Neki modeli moraju biti ručno omogućeni u vašim [postavkama GitHub Copilot](h
│ Enter code: 8F43-6FCF
└ Waiting for authorization...
- ```
+```
3. Sada pokrenite naredbu `/models` da odaberete model koji želite.
```txt
/models
- ```
+```
---
@@ -848,7 +848,7 @@ Za korištenje Google Vertex AI s OpenCode:
```bash
GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json GOOGLE_CLOUD_PROJECT=your-project-id opencode
- ```
+```
Ili ih dodajte svom bash profilu.
@@ -856,7 +856,7 @@ Ili ih dodajte svom bash profilu.
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json
export GOOGLE_CLOUD_PROJECT=your-project-id
export VERTEX_LOCATION=global
- ```
+```
:::tip
Regija `global` poboljšava dostupnost i smanjuje greške bez dodatnih troškova. Koristite regionalne krajnje tačke (npr. `us-central1`) za zahtjeve rezidentnosti podataka. [Saznajte više](https://cloud.google.com/vertex-ai/generative-ai/docs/partner-models/use-partner-models#regional_and_global_endpoints)
@@ -866,7 +866,7 @@ Regija `global` poboljšava dostupnost i smanjuje greške bez dodatnih troškova
```txt
/models
- ```
+```
---
@@ -878,7 +878,7 @@ Regija `global` poboljšava dostupnost i smanjuje greške bez dodatnih troškova
```txt
/connect
- ```
+```
3. Unesite API ključ za provajdera.
@@ -887,13 +887,13 @@ Regija `global` poboljšava dostupnost i smanjuje greške bez dodatnih troškova
└ enter
- ```
+```
4. Pokrenite naredbu `/models` da odaberete onu koju želite.
```txt
/models
- ```
+```
---
@@ -907,7 +907,7 @@ Regija `global` poboljšava dostupnost i smanjuje greške bez dodatnih troškova
```txt
/connect
- ```
+```
3. Unesite svoj token Hugging Face.
@@ -916,13 +916,13 @@ Regija `global` poboljšava dostupnost i smanjuje greške bez dodatnih troškova
└ enter
- ```
+```
4. Pokrenite naredbu `/models` da odaberete model kao što je _Kimi-K2-Instruct_ ili _GLM-4.6_.
```txt
/models
- ```
+```
---
@@ -936,7 +936,7 @@ Regija `global` poboljšava dostupnost i smanjuje greške bez dodatnih troškova
```txt
/connect
- ```
+```
3. Unesite svoj Helicone API ključ.
@@ -945,13 +945,13 @@ Regija `global` poboljšava dostupnost i smanjuje greške bez dodatnih troškova
└ enter
- ```
+```
4. Pokrenite naredbu `/models` da odaberete model.
```txt
/models
- ```
+```
Za više provajdera i napredne funkcije kao što su keširanje i ograničavanje brzine, provjerite [Helicone dokumentaciju](https://docs.helicone.ai).
@@ -1087,7 +1087,7 @@ IO.NET nudi 17 modela optimiziranih za različite slučajeve upotrebe:
```txt
/connect
- ```
+```
3. Unesite svoj IO.NET API ključ.
@@ -1096,13 +1096,13 @@ IO.NET nudi 17 modela optimiziranih za različite slučajeve upotrebe:
└ enter
- ```
+```
4. Pokrenite naredbu `/models` da odaberete model.
```txt
/models
- ```
+```
---
@@ -1150,7 +1150,7 @@ Da biste koristili Kimi K2 iz Moonshot AI:
```txt
/connect
- ```
+```
3. Unesite svoj Moonshot API ključ.
@@ -1159,13 +1159,13 @@ Da biste koristili Kimi K2 iz Moonshot AI:
└ enter
- ```
+```
4. Pokrenite naredbu `/models` da odaberete _Kimi K2_.
```txt
/models
- ```
+```
---
@@ -1177,7 +1177,7 @@ Da biste koristili Kimi K2 iz Moonshot AI:
```txt
/connect
- ```
+```
3. Unesite svoj MiniMax API ključ.
@@ -1186,13 +1186,13 @@ Da biste koristili Kimi K2 iz Moonshot AI:
└ enter
- ```
+```
4. Pokrenite naredbu `/models` da odaberete model kao što je _M2.1_.
```txt
/models
- ```
+```
---
@@ -1204,7 +1204,7 @@ Da biste koristili Kimi K2 iz Moonshot AI:
```txt
/connect
- ```
+```
3. Unesite svoj Nebius Token Factory API ključ.
@@ -1213,13 +1213,13 @@ Da biste koristili Kimi K2 iz Moonshot AI:
└ enter
- ```
+```
4. Pokrenite naredbu `/models` da odaberete model kao što je _Kimi K2 Instruct_.
```txt
/models
- ```
+```
---
@@ -1279,7 +1279,7 @@ Da biste koristili Ollama Cloud s OpenCode:
```txt
/connect
- ```
+```
5. Unesite svoj Ollama Cloud API ključ.
@@ -1288,19 +1288,19 @@ Da biste koristili Ollama Cloud s OpenCode:
└ enter
- ```
+```
6. **Važno**: Prije upotrebe modela oblaka u OpenCode, morate lokalno povući informacije o modelu:
```bash
ollama pull gpt-oss:20b-cloud
- ```
+```
7. Pokrenite naredbu `/models` da odaberete svoj model Ollama Cloud.
```txt
/models
- ```
+```
---
@@ -1312,7 +1312,7 @@ Preporučujemo da se prijavite za [ChatGPT Plus ili Pro](https://chatgpt.com/pri
```txt
/connect
- ```
+```
2. Ovdje možete odabrati opciju **ChatGPT Plus/Pro** i ona će otvoriti vaš pretraživač
i traži od vas da se autentifikujete.
@@ -1323,13 +1323,13 @@ Preporučujemo da se prijavite za [ChatGPT Plus ili Pro](https://chatgpt.com/pri
│ ChatGPT Plus/Pro
│ Manually enter API Key
- ```
+```
3. Sada bi svi OpenAI modeli trebali biti dostupni kada koristite naredbu `/models`.
```txt
/models
- ```
+```
##### Korištenje API ključeva
@@ -1347,7 +1347,7 @@ OpenCode Zen je lista testiranih i verifikovanih modela koju je obezbedio OpenCo
```txt
/connect
- ```
+```
3. Unesite svoj OpenCode API ključ.
@@ -1356,13 +1356,13 @@ OpenCode Zen je lista testiranih i verifikovanih modela koju je obezbedio OpenCo
└ enter
- ```
+```
4. Pokrenite naredbu `/models` da odaberete model kao što je _Qwen 3 Coder 480B_.
```txt
/models
- ```
+```
---
@@ -1374,7 +1374,7 @@ OpenCode Zen je lista testiranih i verifikovanih modela koju je obezbedio OpenCo
```txt
/connect
- ```
+```
3. Unesite API ključ za provajdera.
@@ -1383,50 +1383,50 @@ OpenCode Zen je lista testiranih i verifikovanih modela koju je obezbedio OpenCo
└ enter
- ```
+```
4. Mnogi OpenRouter modeli su unapred učitani po defaultu, pokrenite naredbu `/models` da odaberete onaj koji želite.
```txt
/models
- ```
+```
Također možete dodati dodatne modele putem vaše opencode konfiguracije.
```json title="opencode.json" {6}
- {
- "$schema": "https://opencode.ai/config.json",
- "provider": {
- "openrouter": {
- "models": {
- "somecoolnewmodel": {}
- }
- }
- }
- }
- ```
+{
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "openrouter": {
+ "models": {
+ "somecoolnewmodel": {}
+ }
+ }
+ }
+}
+```
5. Također ih možete prilagoditi putem vaše opencode konfiguracije. Evo primjera navođenja provajdera
```json title="opencode.json"
- {
- "$schema": "https://opencode.ai/config.json",
- "provider": {
- "openrouter": {
- "models": {
- "moonshotai/kimi-k2": {
- "options": {
- "provider": {
- "order": ["baseten"],
- "allow_fallbacks": false
- }
- }
- }
- }
- }
- }
- }
- ```
+{
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "openrouter": {
+ "models": {
+ "moonshotai/kimi-k2": {
+ "options": {
+ "provider": {
+ "order": ["baseten"],
+ "allow_fallbacks": false
+ }
+ }
+ }
+ }
+ }
+ }
+}
+```
---
@@ -1444,7 +1444,7 @@ SAP AI Core omogućava pristup preko 40+ modela iz OpenAI, Anthropic, Google, Am
```txt
/connect
- ```
+```
3. Unesite JSON svoj servisni ključ.
@@ -1453,25 +1453,25 @@ SAP AI Core omogućava pristup preko 40+ modela iz OpenAI, Anthropic, Google, Am
└ enter
- ```
+```
Ili postavite varijablu okruženja `AICORE_SERVICE_KEY`:
```bash
AICORE_SERVICE_KEY='{"clientid":"...","clientsecret":"...","url":"...","serviceurls":{"AI_API_URL":"..."}}' opencode
- ```
+```
Ili ga dodajte na svoj bash profil:
```bash title="~/.bash_profile"
export AICORE_SERVICE_KEY='{"clientid":"...","clientsecret":"...","url":"...","serviceurls":{"AI_API_URL":"..."}}'
- ```
+```
4. Opciono postavite ID implementacije i grupu resursa:
```bash
AICORE_DEPLOYMENT_ID=your-deployment-id AICORE_RESOURCE_GROUP=your-resource-group opencode
- ```
+```
:::note
Ove postavke su opcione i treba ih konfigurirati u skladu s vašim SAP AI Core postavkama.
@@ -1481,7 +1481,7 @@ Ove postavke su opcione i treba ih konfigurirati u skladu s vašim SAP AI Core p
```txt
/models
- ```
+```
---
@@ -1493,7 +1493,7 @@ Ove postavke su opcione i treba ih konfigurirati u skladu s vašim SAP AI Core p
```txt
/connect
- ```
+```
3. Unesite svoj OVHcloud AI Endpoints API ključ.
@@ -1502,13 +1502,13 @@ Ove postavke su opcione i treba ih konfigurirati u skladu s vašim SAP AI Core p
└ enter
- ```
+```
4. Pokrenite naredbu `/models` da odaberete model kao što je _gpt-oss-120b_.
```txt
/models
- ```
+```
---
@@ -1522,7 +1522,7 @@ Da biste koristili [Scaleway Generative APIs](https://www.scaleway.com/en/docs/g
```txt
/connect
- ```
+```
3. Unesite svoj Scaleway API ključ.
@@ -1531,13 +1531,13 @@ Da biste koristili [Scaleway Generative APIs](https://www.scaleway.com/en/docs/g
└ enter
- ```
+```
4. Pokrenite naredbu `/models` da odaberete model kao što je _devstral-2-123b-instruct-2512_ ili _gpt-oss-120b_.
```txt
/models
- ```
+```
---
@@ -1549,7 +1549,7 @@ Da biste koristili [Scaleway Generative APIs](https://www.scaleway.com/en/docs/g
```txt
/connect
- ```
+```
3. Unesite svoj Together AI API ključ.
@@ -1558,13 +1558,13 @@ Da biste koristili [Scaleway Generative APIs](https://www.scaleway.com/en/docs/g
└ enter
- ```
+```
4. Pokrenite naredbu `/models` da odaberete model kao što je _Kimi K2 Instruct_.
```txt
/models
- ```
+```
---
@@ -1576,7 +1576,7 @@ Da biste koristili [Scaleway Generative APIs](https://www.scaleway.com/en/docs/g
```txt
/connect
- ```
+```
3. Unesite svoj Venice AI API ključ.
@@ -1585,13 +1585,13 @@ Da biste koristili [Scaleway Generative APIs](https://www.scaleway.com/en/docs/g
└ enter
- ```
+```
4. Pokrenite naredbu `/models` da odaberete model kao što je _Llama 3.3 70B_.
```txt
/models
- ```
+```
---
@@ -1605,7 +1605,7 @@ Vercel AI Gateway vam omogućava da pristupite modelima iz OpenAI, Anthropic, Go
```txt
/connect
- ```
+```
3. Unesite svoj Vercel AI Gateway API ključ.
@@ -1614,13 +1614,13 @@ Vercel AI Gateway vam omogućava da pristupite modelima iz OpenAI, Anthropic, Go
└ enter
- ```
+```
4. Pokrenite naredbu `/models` da odaberete model.
```txt
/models
- ```
+```
Također možete prilagoditi modele kroz svoju opencode konfiguraciju. Evo primjera specificiranja redoslijeda usmjeravanja dobavljača.
@@ -1659,7 +1659,7 @@ Neke korisne opcije rutiranja:
```txt
/connect
- ```
+```
3. Unesite svoj xAI API ključ.
@@ -1668,13 +1668,13 @@ Neke korisne opcije rutiranja:
└ enter
- ```
+```
4. Pokrenite naredbu `/models` da odaberete model kao što je _Grok Beta_.
```txt
/models
- ```
+```
---
@@ -1686,7 +1686,7 @@ Neke korisne opcije rutiranja:
```txt
/connect
- ```
+```
Ako ste pretplaćeni na **GLM plan kodiranja**, odaberite **Z.AI plan kodiranja**.
@@ -1697,13 +1697,13 @@ Ako ste pretplaćeni na **GLM plan kodiranja**, odaberite **Z.AI plan kodiranja*
└ enter
- ```
+```
4. Pokrenite naredbu `/models` da odaberete model kao što je _GLM-4.7_.
```txt
/models
- ```
+```
---
@@ -1715,7 +1715,7 @@ Ako ste pretplaćeni na **GLM plan kodiranja**, odaberite **Z.AI plan kodiranja*
```txt
/connect
- ```
+```
3. Unesite API ključ za provajdera.
@@ -1724,28 +1724,28 @@ Ako ste pretplaćeni na **GLM plan kodiranja**, odaberite **Z.AI plan kodiranja*
└ enter
- ```
+```
4. Mnogi ZenMux modeli su unaprijed učitani po defaultu, pokrenite naredbu `/models` da odaberete onaj koji želite.
```txt
/models
- ```
+```
Također možete dodati dodatne modele putem vaše opencode konfiguracije.
```json title="opencode.json" {6}
- {
- "$schema": "https://opencode.ai/config.json",
- "provider": {
- "zenmux": {
- "models": {
- "somecoolnewmodel": {}
- }
- }
- }
- }
- ```
+{
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "zenmux": {
+ "models": {
+ "somecoolnewmodel": {}
+ }
+ }
+ }
+}
+```
---
@@ -1768,7 +1768,7 @@ Možete koristiti bilo kojeg OpenAI kompatibilnog provajdera s opencode-om. Već
│ ...
│ ● Other
- ```
+```
2. Unesite jedinstveni ID za provajdera.
@@ -1780,7 +1780,7 @@ Možete koristiti bilo kojeg OpenAI kompatibilnog provajdera s opencode-om. Već
◇ Enter provider id
│ myprovider
- ```
+```
:::note
Odaberite ID koji se pamti, to ćete koristiti u svom konfiguracijskom fajlu.
@@ -1798,29 +1798,29 @@ Odaberite ID koji se pamti, to ćete koristiti u svom konfiguracijskom fajlu.
◇ Enter your API key
│ sk-...
- ```
+```
4. Kreirajte ili ažurirajte svoju `opencode.json` datoteku u direktoriju projekta:
```json title="opencode.json" ""myprovider"" {5-15}
- {
- "$schema": "https://opencode.ai/config.json",
- "provider": {
- "myprovider": {
- "npm": "@ai-sdk/openai-compatible",
- "name": "My AI ProviderDisplay Name",
- "options": {
- "baseURL": "https://api.myprovider.com/v1"
- },
- "models": {
- "my-model-name": {
- "name": "My Model Display Name"
- }
- }
- }
- }
- }
- ```
+{
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "myprovider": {
+ "npm": "@ai-sdk/openai-compatible",
+ "name": "My AI ProviderDisplay Name",
+ "options": {
+ "baseURL": "https://api.myprovider.com/v1"
+ },
+ "models": {
+ "my-model-name": {
+ "name": "My Model Display Name"
+ }
+ }
+ }
+ }
+}
+```
Evo opcija konfiguracije:
diff --git a/packages/web/src/content/docs/bs/troubleshooting.mdx b/packages/web/src/content/docs/bs/troubleshooting.mdx
index 0d377d246..3ef59c8b1 100644
--- a/packages/web/src/content/docs/bs/troubleshooting.mdx
+++ b/packages/web/src/content/docs/bs/troubleshooting.mdx
@@ -242,7 +242,7 @@ Da biste ovo riješili:
```bash
rm -rf ~/.local/share/opencode
- ```
+```
Na Windows-u pritisnite `WIN+R` i izbrišite: `%USERPROFILE%\.local\share\opencode`
@@ -260,7 +260,7 @@ Da biste riješili probleme s paketom dobavljača:
```bash
rm -rf ~/.cache/opencode
- ```
+```
Na Windows-u pritisnite `WIN+R` i izbrišite: `%USERPROFILE%\.cache\opencode`
diff --git a/packages/web/src/content/docs/bs/tui.mdx b/packages/web/src/content/docs/bs/tui.mdx
index 3fa0d903a..a4bf01c7f 100644
--- a/packages/web/src/content/docs/bs/tui.mdx
+++ b/packages/web/src/content/docs/bs/tui.mdx
@@ -292,7 +292,7 @@ Obje naredbe `/editor` i `/export` koriste editor specificiran u vašoj varijabl
<Tabs>
<TabItem label="Linux/macOS">
-```bash
+````bash
# Example for nano or vim
export EDITOR=nano
export EDITOR=vim
@@ -370,7 +370,7 @@ Možete prilagoditi TUI ponašanje putem vašeg OpenCode konfiguracionog fajla.
}
}
}
-```
+````
### Opcije
diff --git a/packages/web/src/content/docs/fr/github.mdx b/packages/web/src/content/docs/fr/github.mdx
index 2083dbcb9..308b25a3d 100644
--- a/packages/web/src/content/docs/fr/github.mdx
+++ b/packages/web/src/content/docs/fr/github.mdx
@@ -71,7 +71,7 @@ Ajoutez le fichier de workflow suivant à `.github/workflows/opencode.yml` dans
model: anthropic/claude-sonnet-4-20250514
# share: true
# github_token: xxxx
- ```
+```
3. **Stockez les clés API en secret**
@@ -90,12 +90,12 @@ Dans les **paramètres** de votre organisation ou de votre projet, développez *
Vous pouvez également utiliser le `GITHUB_TOKEN`](https://docs.github.com/en/actions/tutorials/authenticate-with-github_token) intégré du GitHub Action Runner sans installer l'application OpenCode GitHub. Assurez-vous simplement d'accorder les autorisations requises dans votre flux de travail :
```yaml
- permissions:
- id-token: write
- contents: write
- pull-requests: write
- issues: write
- ```
+permissions:
+ id-token: write
+ contents: write
+ pull-requests: write
+ issues: write
+```
Vous pouvez également utiliser un [jetons d'accès personnels](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens)(PAT) si vous préférez.
@@ -279,7 +279,7 @@ Ajoutez ce commentaire dans un numéro GitHub.
```
/opencode explain this issue
- ```
+```
OpenCode lira l'intégralité du fil de discussion, y compris tous les commentaires, et répondra avec une explication claire.
@@ -289,7 +289,7 @@ Dans un numéro GitHub, dites :
```
/opencode fix this
- ```
+```
Et OpenCode créera une nouvelle branche, mettra en œuvre les modifications et ouvrira un PR avec les modifications.
@@ -299,7 +299,7 @@ Laissez le commentaire suivant sur un PR GitHub.
```
Delete the attachment from S3 when the note is removed /oc
- ```
+```
OpenCode mettra en œuvre la modification demandée et la validera dans le même PR.
@@ -310,7 +310,7 @@ Laissez un commentaire directement sur les lignes de code dans l'onglet "Fichier
```
[Comment on specific lines in Files tab]
/oc add error handling here
- ```
+```
Lorsqu'il commente des lignes spécifiques, OpenCode reçoit :
diff --git a/packages/web/src/content/docs/fr/gitlab.mdx b/packages/web/src/content/docs/fr/gitlab.mdx
index c2401d614..f562aadf3 100644
--- a/packages/web/src/content/docs/fr/gitlab.mdx
+++ b/packages/web/src/content/docs/fr/gitlab.mdx
@@ -170,7 +170,7 @@ Ajoutez ce commentaire dans un numéro GitLab.
```
@opencode explain this issue
- ```
+```
OpenCode lira le problème et répondra avec une explication claire.
@@ -180,7 +180,7 @@ Dans un numéro GitLab, dites :
```
@opencode fix this
- ```
+```
OpenCode créera une nouvelle branche, mettra en œuvre les modifications et ouvrira une demande de fusion avec les modifications.
@@ -190,6 +190,6 @@ Laissez le commentaire suivant sur une demande de fusion GitLab.
```
@opencode review this merge request
- ```
+```
OpenCode examinera la demande de fusion et fournira des commentaires.
diff --git a/packages/web/src/content/docs/fr/index.mdx b/packages/web/src/content/docs/fr/index.mdx
index 15ce5ff77..356806c8e 100644
--- a/packages/web/src/content/docs/fr/index.mdx
+++ b/packages/web/src/content/docs/fr/index.mdx
@@ -230,7 +230,7 @@ Accédez-y à l'aide de la touche **Tab**. Vous verrez un indicateur à cet effe
```bash frame="none" title="Switch to Plan mode"
<TAB>
- ```
+```
Décrivons maintenant ce que nous voulons qu'il fasse.
@@ -238,7 +238,7 @@ Décrivons maintenant ce que nous voulons qu'il fasse.
When a user deletes a note, we'd like to flag it as deleted in the database.
Then create a screen that shows all the recently deleted notes.
From this screen, the user can undelete a note or permanently delete it.
- ```
+```
Vous souhaitez donner à OpenCode suffisamment de détails pour comprendre ce que vous voulez. Ça aide
pour lui parler comme si vous parliez à un développeur junior de votre équipe.
@@ -255,7 +255,7 @@ Une fois qu'il vous donne un plan, vous pouvez lui faire part de vos commentaire
```txt frame="none"
We'd like to design this new screen using a design I've used before.
[Image #1] Take a look at this image and use it as a reference.
- ```
+```
:::tip
Faites glisser et déposez des images dans le terminal pour les ajouter à l'invite.
@@ -271,13 +271,13 @@ appuyer à nouveau sur la touche **Tab**.
```bash frame="none"
<TAB>
- ```
+```
Et lui demander d'apporter les modifications.
```bash frame="none"
Sounds good! Go ahead and make the changes.
- ```
+```
---
diff --git a/packages/web/src/content/docs/fr/providers.mdx b/packages/web/src/content/docs/fr/providers.mdx
index 69be63f5a..b65e9c00a 100644
--- a/packages/web/src/content/docs/fr/providers.mdx
+++ b/packages/web/src/content/docs/fr/providers.mdx
@@ -148,32 +148,32 @@ Définissez l'une de ces variables d'environnement lors de l'exécution de openc
# Option 3: Using Bedrock bearer token
AWS_BEARER_TOKEN_BEDROCK=XXX opencode
- ```
+```
Ou ajoutez-les à votre profil bash :
```bash title="~/.bash_profile"
export AWS_PROFILE=my-dev-profile
export AWS_REGION=us-east-1
- ```
+```
#### Fichier de configuration (recommandé)
Pour une configuration spécifique au projet ou persistante, utilisez `opencode.json` :
```json title="opencode.json"
- {
- "$schema": "https://opencode.ai/config.json",
- "provider": {
- "amazon-bedrock": {
- "options": {
- "region": "us-east-1",
- "profile": "my-aws-profile"
- }
- }
- }
- }
- ```
+{
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "amazon-bedrock": {
+ "options": {
+ "region": "us-east-1",
+ "profile": "my-aws-profile"
+ }
+ }
+ }
+}
+```
**Options disponibles :**
@@ -190,19 +190,19 @@ Les options du fichier de configuration sont prioritaires sur les variables d'en
Si vous utilisez des points de terminaison d'un VPC pour Bedrock :
```json title="opencode.json"
- {
- "$schema": "https://opencode.ai/config.json",
- "provider": {
- "amazon-bedrock": {
- "options": {
- "region": "us-east-1",
- "profile": "production",
- "endpoint": "https://bedrock-runtime.us-east-1.vpce-xxxxx.amazonaws.com"
- }
- }
- }
- }
- ```
+{
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "amazon-bedrock": {
+ "options": {
+ "region": "us-east-1",
+ "profile": "production",
+ "endpoint": "https://bedrock-runtime.us-east-1.vpce-xxxxx.amazonaws.com"
+ }
+ }
+ }
+}
+```
:::note
L'option `endpoint` est un alias pour l'option générique `baseURL`, utilisant la terminologie spécifique à AWS. Si `endpoint` et `baseURL` sont spécifiés, `endpoint` est prioritaire.
@@ -334,7 +334,7 @@ Ou ajoutez-le à votre profil bash :
```bash title="~/.bash_profile"
export AZURE_RESOURCE_NAME=XXX
- ```
+```
6. Exécutez la commande `/models` pour sélectionner votre modèle déployé.
@@ -381,7 +381,7 @@ Ou ajoutez-le à votre profil bash :
```bash title="~/.bash_profile"
export AZURE_COGNITIVE_SERVICES_RESOURCE_NAME=XXX
- ```
+```
6. Exécutez la commande `/models` pour sélectionner votre modèle déployé.
@@ -477,7 +477,7 @@ Ou définissez-le comme variable d'environnement.
```bash title="~/.bash_profile"
export CLOUDFLARE_API_TOKEN=your-api-token
- ```
+```
5. Exécutez la commande `/models` pour sélectionner un modèle.
@@ -488,18 +488,18 @@ Ou définissez-le comme variable d'environnement.
Vous pouvez également ajouter des modèles via votre configuration opencode.
```json title="opencode.json"
- {
- "$schema": "https://opencode.ai/config.json",
- "provider": {
- "cloudflare-ai-gateway": {
- "models": {
- "openai/gpt-4o": {},
- "anthropic/claude-sonnet-4": {}
- }
- }
- }
- }
- ```
+{
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "cloudflare-ai-gateway": {
+ "models": {
+ "openai/gpt-4o": {},
+ "anthropic/claude-sonnet-4": {}
+ }
+ }
+ }
+}
+```
---
@@ -673,8 +673,10 @@ Sélectionnez **OAuth** et votre navigateur s'ouvrira pour autorisation.
6. Exécutez la commande `/models` pour voir les modèles disponibles.
```txt
- /models
- ```
+ /models
+ ```
+
+````
Trois modèles basés sur Claude sont disponibles :
@@ -697,11 +699,11 @@ Fichier `opencode.json`. Il est également recommandé de désactiver le partage
```json
{
- "$schema": "https://opencode.ai/config.json",
- "small_model": "gitlab/duo-chat-haiku-4-5",
- "share": "disabled"
+"$schema": "https://opencode.ai/config.json",
+"small_model": "gitlab/duo-chat-haiku-4-5",
+"share": "disabled"
}
-```
+````
:::
@@ -848,7 +850,7 @@ Définissez-les lors de l'exécution de opencode.
```bash
GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json GOOGLE_CLOUD_PROJECT=your-project-id opencode
- ```
+```
Ou ajoutez-les à votre profil bash.
@@ -856,7 +858,7 @@ Ou ajoutez-les à votre profil bash.
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json
export GOOGLE_CLOUD_PROJECT=your-project-id
export VERTEX_LOCATION=global
- ```
+```
:::tip
La région `global` améliore la disponibilité et réduit les erreurs sans frais supplémentaires. Utilisez des points de terminaison régionaux (par exemple, `us-central1`) pour les exigences de résidence des données. [En savoir plus](https://cloud.google.com/vertex-ai/generative-ai/docs/partner-models/use-partner-models#regional_and_global_endpoints)
@@ -1394,17 +1396,17 @@ OpenCode Zen est une liste de modèles testés et vérifiés fournie par l'équi
Vous pouvez également ajouter des modèles supplémentaires via votre configuration opencode.
```json title="opencode.json" {6}
- {
- "$schema": "https://opencode.ai/config.json",
- "provider": {
- "openrouter": {
- "models": {
- "somecoolnewmodel": {}
- }
- }
- }
- }
- ```
+{
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "openrouter": {
+ "models": {
+ "somecoolnewmodel": {}
+ }
+ }
+ }
+}
+```
5. Vous pouvez également les personnaliser via votre configuration opencode. Voici un exemple de spécification d'un fournisseur
@@ -1459,13 +1461,13 @@ Ou définissez la variable d'environnement `AICORE_SERVICE_KEY` :
```bash
AICORE_SERVICE_KEY='{"clientid":"...","clientsecret":"...","url":"...","serviceurls":{"AI_API_URL":"..."}}' opencode
- ```
+```
Ou ajoutez-le à votre profil bash :
```bash title="~/.bash_profile"
export AICORE_SERVICE_KEY='{"clientid":"...","clientsecret":"...","url":"...","serviceurls":{"AI_API_URL":"..."}}'
- ```
+```
4. Définissez éventuellement l'ID de déploiement et le groupe de ressources :
@@ -1735,17 +1737,17 @@ Si vous êtes abonné au **Plan de codage GLM**, sélectionnez **Plan de codage
Vous pouvez également ajouter des modèles supplémentaires via votre configuration opencode.
```json title="opencode.json" {6}
- {
- "$schema": "https://opencode.ai/config.json",
- "provider": {
- "zenmux": {
- "models": {
- "somecoolnewmodel": {}
- }
- }
- }
- }
- ```
+{
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "zenmux": {
+ "models": {
+ "somecoolnewmodel": {}
+ }
+ }
+ }
+}
+```
---
diff --git a/packages/web/src/content/docs/ja/cli.mdx b/packages/web/src/content/docs/ja/cli.mdx
index 090deae28..6eb913f0e 100644
--- a/packages/web/src/content/docs/ja/cli.mdx
+++ b/packages/web/src/content/docs/ja/cli.mdx
@@ -29,16 +29,16 @@ opencode [project]
#### Flags
-| Flag | Short | Description |
-| ------------ | ----- | --------------------------------------------------------------------- |
-| `--continue` | `-c` | 最後のセッションを続行 |
-| `--session` | | 続行時にセッションをフォーク (`-s` または `--fork` と併用) |
-| `--continue` | `--session` | 続行するセッション ID |
-| `--prompt` | | 使用のプロンプト |
-| `--model` | `-m` | プロバイダー/モデルの形式で使用するモデル |
-| `--agent` | | 使用するエージェント |
-| `--port` | | リッスンするポート |
-| `--hostname` | | リッスンするホスト名 |
+| Flag | Short | Description |
+| ------------ | ----------- | ---------------------------------------------------------- |
+| `--continue` | `-c` | 最後のセッションを続行 |
+| `--session` | | 続行時にセッションをフォーク (`-s` または `--fork` と併用) |
+| `--continue` | `--session` | 続行するセッション ID |
+| `--prompt` | | 使用のプロンプト |
+| `--model` | `-m` | プロバイダー/モデルの形式で使用するモデル |
+| `--agent` | | 使用するエージェント |
+| `--port` | | リッスンするポート |
+| `--hostname` | | リッスンするホスト名 |
---
@@ -335,20 +335,20 @@ opencode run --attach http://localhost:4096 "Explain async/await in JavaScript"
#### Flags
-| Flag | Short | Description |
-| ------------ | ----- | ----------------------------------------------------------------------------------------- |
-| `--command` | | 実行するコマンド。引数には message を使用します。 |
-| `--continue` | `-c` | 最後のセッションを続行 |
-| `--session` | | 続行時にセッションをフォーク (`-s` または `--fork` と併用) |
-| `--continue` | `--session` | 続行するセッション ID |
-| `--share` | | セッションを共有する |
-| `--model` | `-m` | プロバイダー/モデルの形式で使用するモデル |
-| `--agent` | | 使用するエージェント |
-| `--file` | `-f` | メッセージに添付するファイル |
-| `--format` | | 形式: デフォルト (フォーマット済み) または json (生の JSON イベント) |
-| `--title` | | セッションのタイトル (値が指定されていない場合は、切り詰められたプロンプトが使用されます) |
-| `--attach` | | 実行中のopencodeサーバー (http://localhost:4096 など) に接続します。 |
-| `--port` | | ローカルサーバーのポート (デフォルトはランダムポート) |
+| Flag | Short | Description |
+| ------------ | ----------- | ----------------------------------------------------------------------------------------- |
+| `--command` | | 実行するコマンド。引数には message を使用します。 |
+| `--continue` | `-c` | 最後のセッションを続行 |
+| `--session` | | 続行時にセッションをフォーク (`-s` または `--fork` と併用) |
+| `--continue` | `--session` | 続行するセッション ID |
+| `--share` | | セッションを共有する |
+| `--model` | `-m` | プロバイダー/モデルの形式で使用するモデル |
+| `--agent` | | 使用するエージェント |
+| `--file` | `-f` | メッセージに添付するファイル |
+| `--format` | | 形式: デフォルト (フォーマット済み) または json (生の JSON イベント) |
+| `--title` | | セッションのタイトル (値が指定されていない場合は、切り詰められたプロンプトが使用されます) |
+| `--attach` | | 実行中のopencodeサーバー (http://localhost:4096 など) に接続します。 |
+| `--port` | | ローカルサーバーのポート (デフォルトはランダムポート) |
---
diff --git a/packages/web/src/content/docs/ja/github.mdx b/packages/web/src/content/docs/ja/github.mdx
index 9c958eaf7..b879e08dc 100644
--- a/packages/web/src/content/docs/ja/github.mdx
+++ b/packages/web/src/content/docs/ja/github.mdx
@@ -71,7 +71,7 @@ opencode github install
model: anthropic/claude-sonnet-4-20250514
# share: true
# github_token: xxxx
- ```
+```
3. **API キーをシークレットに保存します**
@@ -90,12 +90,12 @@ opencode github install
あるいは、OpenCode GitHub アプリをインストールせずに、GitHub Action ランナーの [組み込み `GITHUB_TOKEN`](https://docs.github.com/en/actions/tutorials/authenticate-with-github_token) を使用することもできます。ワークフローで必要な権限を必ず付与してください。
```yaml
- permissions:
- id-token: write
- contents: write
- pull-requests: write
- issues: write
- ```
+permissions:
+ id-token: write
+ contents: write
+ pull-requests: write
+ issues: write
+```
必要に応じて、[パーソナル アクセス トークン](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens)(PAT) を使用することもできます。
@@ -279,7 +279,7 @@ GitHub で OpenCode を使用する方法の例をいくつか示します。
```
/opencode explain this issue
- ```
+```
OpenCode は、すべてのコメントを含むスレッド全体を読み取り、明確な説明を返信します。
@@ -289,7 +289,7 @@ GitHub の問題で次のように言います。
```
/opencode fix this
- ```
+```
そして、OpenCode は新しいブランチを作成し、変更を実装し、変更を含む PR を開きます。
@@ -299,7 +299,7 @@ GitHub PR に次のコメントを残してください。
```
Delete the attachment from S3 when the note is removed /oc
- ```
+```
OpenCode は要求された変更を実装し、同じ PR にコミットします。
@@ -310,7 +310,7 @@ PR の「ファイル」タブのコード行に直接コメントを残しま�
```
[Comment on specific lines in Files tab]
/oc add error handling here
- ```
+```
特定の行にコメントすると、OpenCode は以下を受け取ります。
diff --git a/packages/web/src/content/docs/ja/gitlab.mdx b/packages/web/src/content/docs/ja/gitlab.mdx
index ab7d93ca5..7f20ed571 100644
--- a/packages/web/src/content/docs/ja/gitlab.mdx
+++ b/packages/web/src/content/docs/ja/gitlab.mdx
@@ -170,7 +170,7 @@ GitLab で OpenCode を使用する方法の例をいくつか示します。
```
@opencode explain this issue
- ```
+```
OpenCode は問題を読み、明確な説明を返信します。
@@ -180,7 +180,7 @@ GitLab の問題では、次のように言います。
```
@opencode fix this
- ```
+```
OpenCode は新しいブランチを作成し、変更を実装し、変更を含むマージ リクエストを開きます。
@@ -190,6 +190,6 @@ GitLab マージ リクエストに次のコメントを残してください。
```
@opencode review this merge request
- ```
+```
OpenCode はマージ リクエストをレビューし、フィードバックを提供します。
diff --git a/packages/web/src/content/docs/ja/index.mdx b/packages/web/src/content/docs/ja/index.mdx
index c1bfd24d2..87b0e9e74 100644
--- a/packages/web/src/content/docs/ja/index.mdx
+++ b/packages/web/src/content/docs/ja/index.mdx
@@ -230,7 +230,7 @@ OpenCode には、変更を加える機能を無効にする _Plan mode_ があ�
```bash frame="none" title="Switch to Plan mode"
<TAB>
- ```
+```
では、何をしたいのかを説明しましょう。
@@ -238,7 +238,7 @@ OpenCode には、変更を加える機能を無効にする _Plan mode_ があ�
When a user deletes a note, we'd like to flag it as deleted in the database.
Then create a screen that shows all the recently deleted notes.
From this screen, the user can undelete a note or permanently delete it.
- ```
+```
自分が何を望んでいるのかを理解するために、OpenCode に十分な詳細を提供したいと考えています。役に立ちます
チームの若手開発者と話しているように話すことができます。
@@ -255,7 +255,7 @@ want.
```txt frame="none"
We'd like to design this new screen using a design I've used before.
[Image #1] Take a look at this image and use it as a reference.
- ```
+```
:::tip
画像をterminal にドラッグ アンド ドロップして、プロンプトに追加します。
@@ -271,13 +271,13 @@ OpenCode は、指定された画像をスキャンしてプロンプトに追�
```bash frame="none"
<TAB>
- ```
+```
そして変更を加えるように依頼します。
```bash frame="none"
Sounds good! Go ahead and make the changes.
- ```
+```
---
diff --git a/packages/web/src/content/docs/ja/providers.mdx b/packages/web/src/content/docs/ja/providers.mdx
index 91d8c5c76..7ffe4605d 100644
--- a/packages/web/src/content/docs/ja/providers.mdx
+++ b/packages/web/src/content/docs/ja/providers.mdx
@@ -148,32 +148,32 @@ opencode の実行中に次の環境変数のいずれかを設定します。
# Option 3: Using Bedrock bearer token
AWS_BEARER_TOKEN_BEDROCK=XXX opencode
- ```
+```
または、それらを bash プロファイルに追加します。
```bash title="~/.bash_profile"
export AWS_PROFILE=my-dev-profile
export AWS_REGION=us-east-1
- ```
+```
#### 設定ファイル (推奨)
プロジェクト固有の構成または永続的な構成の場合は、`opencode.json` を使用します。
```json title="opencode.json"
- {
- "$schema": "https://opencode.ai/config.json",
- "provider": {
- "amazon-bedrock": {
- "options": {
- "region": "us-east-1",
- "profile": "my-aws-profile"
- }
- }
- }
- }
- ```
+{
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "amazon-bedrock": {
+ "options": {
+ "region": "us-east-1",
+ "profile": "my-aws-profile"
+ }
+ }
+ }
+}
+```
**利用可能なオプション:**
@@ -190,19 +190,19 @@ opencode の実行中に次の環境変数のいずれかを設定します。
Bedrock の VPC エンドポイントを使用している場合:
```json title="opencode.json"
- {
- "$schema": "https://opencode.ai/config.json",
- "provider": {
- "amazon-bedrock": {
- "options": {
- "region": "us-east-1",
- "profile": "production",
- "endpoint": "https://bedrock-runtime.us-east-1.vpce-xxxxx.amazonaws.com"
- }
- }
- }
- }
- ```
+{
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "amazon-bedrock": {
+ "options": {
+ "region": "us-east-1",
+ "profile": "production",
+ "endpoint": "https://bedrock-runtime.us-east-1.vpce-xxxxx.amazonaws.com"
+ }
+ }
+ }
+}
+```
:::note
`endpoint` オプションは、AWS 固有の用語を使用した汎用の `baseURL` オプションのエイリアスです。 `endpoint` と `baseURL` の両方が指定された場合は、`endpoint` が優先されます。
@@ -334,7 +334,7 @@ opencodeが正しく動作するには、デプロイメント名がモデル名
```bash title="~/.bash_profile"
export AZURE_RESOURCE_NAME=XXX
- ```
+```
6. `/models` コマンドを実行して、デプロイされたモデルを選択します。
@@ -381,7 +381,7 @@ opencodeが正しく動作するには、デプロイメント名がモデル名
```bash title="~/.bash_profile"
export AZURE_COGNITIVE_SERVICES_RESOURCE_NAME=XXX
- ```
+```
6. `/models` コマンドを実行して、デプロイされたモデルを選択します。
@@ -477,7 +477,7 @@ Cloudflare AI Gatewayを使用すると、統合エンドポイントを通じ�
```bash title="~/.bash_profile"
export CLOUDFLARE_API_TOKEN=your-api-token
- ```
+```
5. `/models` コマンドを実行してモデルを選択します。
@@ -488,18 +488,18 @@ Cloudflare AI Gatewayを使用すると、統合エンドポイントを通じ�
opencode構成を通じてモデルを追加することもできます。
```json title="opencode.json"
- {
- "$schema": "https://opencode.ai/config.json",
- "provider": {
- "cloudflare-ai-gateway": {
- "models": {
- "openai/gpt-4o": {},
- "anthropic/claude-sonnet-4": {}
- }
- }
- }
- }
- ```
+{
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "cloudflare-ai-gateway": {
+ "models": {
+ "openai/gpt-4o": {},
+ "anthropic/claude-sonnet-4": {}
+ }
+ }
+ }
+}
+```
---
@@ -673,8 +673,10 @@ GitLab Duo は、GitLab の Anthropic プロキシを介したネイティブ �
6. `/models` コマンドを実行して、利用可能なモデルを確認します。
```txt
- /models
- ```
+ /models
+ ```
+
+````
3 つのクロードベースのモデルが利用可能です。
@@ -697,11 +699,11 @@ OpenCode は、セッション タイトルの生成などの一部の AI タス
```json
{
- "$schema": "https://opencode.ai/config.json",
- "small_model": "gitlab/duo-chat-haiku-4-5",
- "share": "disabled"
+"$schema": "https://opencode.ai/config.json",
+"small_model": "gitlab/duo-chat-haiku-4-5",
+"share": "disabled"
}
-```
+````
:::
@@ -848,7 +850,7 @@ opencode の実行中に設定します。
```bash
GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json GOOGLE_CLOUD_PROJECT=your-project-id opencode
- ```
+```
または、それらを bash プロファイルに追加します。
@@ -856,7 +858,7 @@ opencode の実行中に設定します。
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json
export GOOGLE_CLOUD_PROJECT=your-project-id
export VERTEX_LOCATION=global
- ```
+```
:::tip
`global` 領域は、追加コストなしで可用性を向上させ、エラーを削減します。データ常駐要件には、リージョン エンドポイント (`us-central1` など) を使用します。 [詳細はこちら](https://cloud.google.com/vertex-ai/generative-ai/docs/partner-models/use-partner-models#regional_and_global_endpoints)
@@ -1394,17 +1396,17 @@ OpenCode Zen は、OpenCode チームによって提供される、テストお�
opencode構成を通じて追加のモデルを追加することもできます。
```json title="opencode.json" {6}
- {
- "$schema": "https://opencode.ai/config.json",
- "provider": {
- "openrouter": {
- "models": {
- "somecoolnewmodel": {}
- }
- }
- }
- }
- ```
+{
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "openrouter": {
+ "models": {
+ "somecoolnewmodel": {}
+ }
+ }
+ }
+}
+```
5. opencode設定を通じてカスタマイズすることもできます。プロバイダーを指定する例を次に示します。
@@ -1459,13 +1461,13 @@ SAP AI コアは、統合プラットフォームを通じて、OpenAI、Anthrop
```bash
AICORE_SERVICE_KEY='{"clientid":"...","clientsecret":"...","url":"...","serviceurls":{"AI_API_URL":"..."}}' opencode
- ```
+```
または、bash プロファイルに追加します。
```bash title="~/.bash_profile"
export AICORE_SERVICE_KEY='{"clientid":"...","clientsecret":"...","url":"...","serviceurls":{"AI_API_URL":"..."}}'
- ```
+```
4. 必要に応じて、デプロイメント ID とリソース グループを設定します。
@@ -1735,17 +1737,17 @@ opencode構成を通じてモデルをカスタマイズすることもできま
opencode構成を通じて追加のモデルを追加することもできます。
```json title="opencode.json" {6}
- {
- "$schema": "https://opencode.ai/config.json",
- "provider": {
- "zenmux": {
- "models": {
- "somecoolnewmodel": {}
- }
- }
- }
- }
- ```
+{
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "zenmux": {
+ "models": {
+ "somecoolnewmodel": {}
+ }
+ }
+ }
+}
+```
---
diff --git a/packages/web/src/content/docs/ko/github.mdx b/packages/web/src/content/docs/ko/github.mdx
index 7a6f730c5..2395ee667 100644
--- a/packages/web/src/content/docs/ko/github.mdx
+++ b/packages/web/src/content/docs/ko/github.mdx
@@ -70,7 +70,7 @@ GitHub 앱을 설치하고 워크플로를 만들고 비밀을 설정할 수 있
model: anthropic/claude-sonnet-4-20250514
# share: true
# github_token: xxxx
- ```
+```
3. ** 비밀의 API 키 저장 **
@@ -89,12 +89,12 @@ GitHub 앱을 설치하고 워크플로를 만들고 비밀을 설정할 수 있
대안으로, GitHub Action runner의 [붙박이 `GITHUB_TOKEN`](https://docs.github.com/en/actions/tutorials/authenticate-with-github token)을 사용하여 opencode GitHub 앱을 설치하지 않고 사용할 수 있습니다. 워크플로우에서 필요한 권한을 부여하는 것을 확인하십시오.
```yaml
- permissions:
- id-token: write
- contents: write
- pull-requests: write
- issues: write
- ```
+permissions:
+ id-token: write
+ contents: write
+ pull-requests: write
+ issues: write
+```
또한 [개인 액세스 토큰](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens)(PAT)를 사용할 수 있습니다.
@@ -278,7 +278,7 @@ GitHub 문제에서 이 의견 추가.
```
/opencode explain this issue
- ```
+```
opencode는 모든 코멘트를 포함하여 전체 스레드를 읽고, 명확한 설명과 대답.
@@ -288,7 +288,7 @@ GitHub 문제에서:
```
/opencode fix this
- ```
+```
opencode는 새로운 지점을 만들 것이며 변경 사항을 실행하고 PR을 변경합니다.
@@ -298,7 +298,7 @@ GitHub PR에 다음 댓글을 남겨주세요.
```
Delete the attachment from S3 when the note is removed /oc
- ```
+```
opencode는 요청한 변경을 구현하고 동일한 PR에 커밋합니다.
@@ -309,7 +309,7 @@ PR의 "Files" 탭의 코드 라인에 직접 댓글을 남겨주세요. opencode
```
[Comment on specific lines in Files tab]
/oc add error handling here
- ```
+```
특정 라인에 대한 의견이 있을 때, opencode는 다음과 같습니다.
diff --git a/packages/web/src/content/docs/ko/gitlab.mdx b/packages/web/src/content/docs/ko/gitlab.mdx
index bdf73496b..758ab0491 100644
--- a/packages/web/src/content/docs/ko/gitlab.mdx
+++ b/packages/web/src/content/docs/ko/gitlab.mdx
@@ -170,7 +170,7 @@ GitLab 문제에서이 코멘트를 추가하십시오.
```
@opencode explain this issue
- ```
+```
opencode는 문제와 대답을 명확하게 설명합니다.
@@ -180,7 +180,7 @@ GitLab 문제에서, 말한다:
```
@opencode fix this
- ```
+```
opencode는 새로운 지점을 만들 것이며 변경 사항을 구현하고 변경 사항을 병합 요청을 엽니다.
@@ -190,6 +190,6 @@ GitLab 병합 요청에 대한 다음 의견을 남겨주세요.
```
@opencode review this merge request
- ```
+```
opencode는 병합 요청을 검토하고 피드백을 제공합니다.
diff --git a/packages/web/src/content/docs/ko/providers.mdx b/packages/web/src/content/docs/ko/providers.mdx
index faff030dc..222a54fc7 100644
--- a/packages/web/src/content/docs/ko/providers.mdx
+++ b/packages/web/src/content/docs/ko/providers.mdx
@@ -148,32 +148,32 @@ opencode를 실행하는 동안 이러한 환경 변수 중 하나를 설정:
# Option 3: Using Bedrock bearer token
AWS_BEARER_TOKEN_BEDROCK=XXX opencode
- ```
+```
또는 bash 프로필에 추가:
```bash title="~/.bash_profile"
export AWS_PROFILE=my-dev-profile
export AWS_REGION=us-east-1
- ```
+```
#### 설정 파일 (추천)
프로젝트 별 또는 지속적 구성의 경우 `opencode.json`를 사용하십시오.
```json title="opencode.json"
- {
- "$schema": "https://opencode.ai/config.json",
- "provider": {
- "amazon-bedrock": {
- "options": {
- "region": "us-east-1",
- "profile": "my-aws-profile"
- }
- }
- }
- }
- ```
+{
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "amazon-bedrock": {
+ "options": {
+ "region": "us-east-1",
+ "profile": "my-aws-profile"
+ }
+ }
+ }
+}
+```
** 유효한 옵션:**
@@ -190,19 +190,19 @@ opencode를 실행하는 동안 이러한 환경 변수 중 하나를 설정:
Bedrock의 VPC 엔드포인트를 사용하는 경우:
```json title="opencode.json"
- {
- "$schema": "https://opencode.ai/config.json",
- "provider": {
- "amazon-bedrock": {
- "options": {
- "region": "us-east-1",
- "profile": "production",
- "endpoint": "https://bedrock-runtime.us-east-1.vpce-xxxxx.amazonaws.com"
- }
- }
- }
- }
- ```
+{
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "amazon-bedrock": {
+ "options": {
+ "region": "us-east-1",
+ "profile": "production",
+ "endpoint": "https://bedrock-runtime.us-east-1.vpce-xxxxx.amazonaws.com"
+ }
+ }
+ }
+}
+```
:::note
`endpoint` 옵션은 일반적인 `baseURL` 옵션의 별칭입니다. `endpoint`와 `baseURL` 둘 다 지정되는 경우에, `endpoint`는 전진합니다.
@@ -336,7 +336,7 @@ Pro/Max 구독이 없는 경우 **Create an API Key**를 선택할 수 있습니
```bash title="~/.bash_profile"
export AZURE_RESOURCE_NAME=XXX
- ```
+```
6. `/models` 명령을 실행하여 배포 된 모델을 선택하십시오.
@@ -384,7 +384,7 @@ Pro/Max 구독이 없는 경우 **Create an API Key**를 선택할 수 있습니
```bash title="~/.bash_profile"
export AZURE_COGNITIVE_SERVICES_RESOURCE_NAME=XXX
- ```
+```
6. `/models` 명령을 실행하여 배포 된 모델을 선택하십시오.
@@ -480,7 +480,7 @@ Cloudflare AI 게이트웨이는 OpenAI, Anthropic, Workers AI 등의 모델에
```bash title="~/.bash_profile"
export CLOUDFLARE_API_TOKEN=your-api-token
- ```
+```
5. 모델을 선택하려면 `/models` 명령을 실행하십시오.
@@ -491,18 +491,18 @@ Cloudflare AI 게이트웨이는 OpenAI, Anthropic, Workers AI 등의 모델에
opencode config를 통해 모델을 추가할 수 있습니다.
```json title="opencode.json"
- {
- "$schema": "https://opencode.ai/config.json",
- "provider": {
- "cloudflare-ai-gateway": {
- "models": {
- "openai/gpt-4o": {},
- "anthropic/claude-sonnet-4": {}
- }
- }
- }
- }
- ```
+{
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "cloudflare-ai-gateway": {
+ "models": {
+ "openai/gpt-4o": {},
+ "anthropic/claude-sonnet-4": {}
+ }
+ }
+ }
+}
+```
---
@@ -849,7 +849,7 @@ opencode를 실행하면서 설정한다.
```bash
GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json GOOGLE_CLOUD_PROJECT=your-project-id opencode
- ```
+```
또는 bash 프로파일에 추가하십시오.
@@ -857,7 +857,7 @@ opencode를 실행하면서 설정한다.
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json
export GOOGLE_CLOUD_PROJECT=your-project-id
export VERTEX_LOCATION=global
- ```
+```
:::tip
`global` 지구는 가용성을 개량하고 추가 비용 없이 과실을 감소시킵니다. 데이터 거주 요건에 대한 지역 엔드포인트(e.g., `us-central1`)를 사용하십시오. [더 알아보기](https://cloud.google.com/vertex-ai/generative-ai/docs/partner-models/use-partner-models#regional and global endpoints)
@@ -1395,17 +1395,17 @@ OpenCode Zen은 opencode 팀에서 제공하는 테스트 및 검증된 모델 �
opencode config를 통해 추가 모델을 추가할 수 있습니다.
```json title="opencode.json" {6}
- {
- "$schema": "https://opencode.ai/config.json",
- "provider": {
- "openrouter": {
- "models": {
- "somecoolnewmodel": {}
- }
- }
- }
- }
- ```
+{
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "openrouter": {
+ "models": {
+ "somecoolnewmodel": {}
+ }
+ }
+ }
+}
+```
5. 당신은 또한 당신의 opencode config를 통해 그들을 주문을 받아서 만들 수 있습니다. 공급자 지정의 예입니다.
@@ -1460,13 +1460,13 @@ SAP AI Core는 OpenAI, Anthropic, Google, Amazon, Meta, Mistral 및 AI21의 40+
```bash
AICORE_SERVICE_KEY='{"clientid":"...","clientsecret":"...","url":"...","serviceurls":{"AI_API_URL":"..."}}' opencode
- ```
+```
또는 bash 프로파일에 추가:
```bash title="~/.bash_profile"
export AICORE_SERVICE_KEY='{"clientid":"...","clientsecret":"...","url":"...","serviceurls":{"AI_API_URL":"..."}}'
- ```
+```
4. 선택적으로 배치 ID 및 자원 그룹:
@@ -1736,17 +1736,17 @@ opencode config를 통해 모델을 사용자 정의 할 수 있습니다. 공�
opencode config를 통해 추가 모델을 추가할 수 있습니다.
```json title="opencode.json" {6}
- {
- "$schema": "https://opencode.ai/config.json",
- "provider": {
- "zenmux": {
- "models": {
- "somecoolnewmodel": {}
- }
- }
- }
- }
- ```
+{
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "zenmux": {
+ "models": {
+ "somecoolnewmodel": {}
+ }
+ }
+ }
+}
+```
---
diff --git a/packages/web/src/content/docs/zh-cn/mcp-servers.mdx b/packages/web/src/content/docs/zh-cn/mcp-servers.mdx
index bbba2efca..e884a76d8 100644
--- a/packages/web/src/content/docs/zh-cn/mcp-servers.mdx
+++ b/packages/web/src/content/docs/zh-cn/mcp-servers.mdx
@@ -152,14 +152,14 @@ use the mcp_everything tool to add the number 3 and 4
#### 選項
-| 選項 | 類型 | 必填 | 描述 |
-| --------- | ------ | ---- | -------------------------------------------------------------- |
-| `headers` | 字符串 | 是 | MCP 服务器连接类型,必须是`type`。 |
-| `"remote"` | 字符串 | 是 | 远程 MCP 服务器的 URL。 |
-| `url` | 布尔 | | 在启动时启用或禁用MCP 服务器。 |
-| `enabled` | 对象 | | 随请求一起发送的标头。 |
-| `headers` | 对象 | | OAuth 身份验证。请参阅下面的配置[开放认证](#oauth) 部分。 |
-| `oauth` | 数量 | | 从MCP服务器获取工具的超时(以毫秒为单位)。默认为5000(5秒)。 |
+| 選項 | 類型 | 必填 | 描述 |
+| ---------- | ------ | ---- | -------------------------------------------------------------- |
+| `headers` | 字符串 | 是 | MCP 服务器连接类型,必须是`type`。 |
+| `"remote"` | 字符串 | 是 | 远程 MCP 服务器的 URL。 |
+| `url` | 布尔 | | 在启动时启用或禁用MCP 服务器。 |
+| `enabled` | 对象 | | 随请求一起发送的标头。 |
+| `headers` | 对象 | | OAuth 身份验证。请参阅下面的配置[开放认证](#oauth) 部分。 |
+| `oauth` | 数量 | | 从MCP服务器获取工具的超时(以毫秒为单位)。默认为5000(5秒)。 |
---