This shows you the differences between two versions of the page.
|
opencode [2026/08/25 15:13] val created |
opencode [2026/08/25 15:14] (current) val |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== OpenCode ====== | ====== OpenCode ====== | ||
| + | <code> | ||
| + | debian:~/project1# cat opencode.json | ||
| + | { | ||
| + | "$schema": "https://opencode.ai/config.json", | ||
| + | "permission": { | ||
| + | "bash": "allow", | ||
| + | "external_directory": "allow" | ||
| + | }, | ||
| + | "provider": { | ||
| + | "ollama": { | ||
| + | "npm": "@ai-sdk/openai-compatible", | ||
| + | "name": "Ollama (local)", | ||
| + | "options": { | ||
| + | "baseURL": "http://localhost:11434/v1" | ||
| + | }, | ||
| + | "models": { | ||
| + | "qwen2.5-coder:14b-instruct-q4_K_M": { | ||
| + | "name": "qwen2.5-coder:14b-instruct-q4_K_M" | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | }, | ||
| + | "model": "ollama/qwen2.5-coder:14b-instruct-q4_K_M" | ||
| + | } | ||
| + | </code> | ||