chore: generate
This commit is contained in:
committed by
opencode
parent
55119559b3
commit
4f6b929784
@@ -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:
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
```
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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`
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 :
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
```
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -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": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -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` | | ローカルサーバーのポート (デフォルトはランダムポート) |
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -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 は以下を受け取ります。
|
||||
|
||||
|
||||
@@ -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 はマージ リクエストをレビューし、フィードバックを提供します。
|
||||
|
||||
@@ -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.
|
||||
```
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -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": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -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는 다음과 같습니다.
|
||||
|
||||
|
||||
@@ -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는 병합 요청을 검토하고 피드백을 제공합니다.
|
||||
|
||||
@@ -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": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -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秒)。 |
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user