diff options
| author | Mike <[email protected]> | 2026-04-29 07:10:41 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-28 23:10:41 -0500 |
| commit | a8c74c04deff2fdc63c81655b8d0dc218a762aff (patch) | |
| tree | 88c8b440903b7660ca3431e06b3a4a2ef2353315 /packages/web/src/content/docs/it | |
| parent | f6b4f542162a6db7a630db359926a3a82a566159 (diff) | |
| download | opencode-a8c74c04deff2fdc63c81655b8d0dc218a762aff.tar.gz opencode-a8c74c04deff2fdc63c81655b8d0dc218a762aff.zip | |
docs: add Atomic Chat provider section (#23069)
Diffstat (limited to 'packages/web/src/content/docs/it')
| -rw-r--r-- | packages/web/src/content/docs/it/providers.mdx | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/packages/web/src/content/docs/it/providers.mdx b/packages/web/src/content/docs/it/providers.mdx index 26bf19fd6..96da8c4df 100644 --- a/packages/web/src/content/docs/it/providers.mdx +++ b/packages/web/src/content/docs/it/providers.mdx @@ -299,6 +299,44 @@ Oppure se hai già una chiave API, puoi selezionare **Manually enter API Key** e --- +### Atomic Chat + +Puoi configurare opencode per utilizzare modelli locali tramite [Atomic Chat](https://atomic.chat), un'applicazione desktop che esegue LLM locali dietro un server API compatibile OpenAI (endpoint predefinito `http://127.0.0.1:1337/v1`). + +```json title="opencode.json" "atomic-chat" {5, 6, 8, 10-14} +{ + "$schema": "https://opencode.ai/config.json", + "provider": { + "atomic-chat": { + "npm": "@ai-sdk/openai-compatible", + "name": "Atomic Chat (local)", + "options": { + "baseURL": "http://127.0.0.1:1337/v1" + }, + "models": { + "<your-model-id>": { + "name": "<your-model-name>" + } + } + } + } +} +``` + +In questo esempio: + +- `atomic-chat` è l'ID personalizzato del provider. Può essere qualsiasi stringa. +- `npm` specifica il pacchetto da utilizzare per questo provider. Qui viene usato `@ai-sdk/openai-compatible` per qualsiasi API compatibile OpenAI. +- `name` è il nome visualizzato del provider nell'interfaccia. +- `options.baseURL` è l'endpoint del server locale. Modifica host e porta in base alla tua configurazione Atomic Chat. +- `models` è una mappa di ID modello ai rispettivi nomi visualizzati. Ogni ID deve corrispondere all'`id` restituito da `GET /v1/models` — esegui `curl http://127.0.0.1:1337/v1/models` per elencare gli ID attualmente caricati in Atomic Chat. + +:::tip +Se le chiamate agli strumenti non funzionano bene, scegli un modello caricato con buon supporto per il tool calling (ad esempio, una variante Qwen-Coder o DeepSeek-Coder). +::: + +--- + ### Azure OpenAI :::note |
