OpenCode config for self-hosted LLM

~/.config/opencode/opencode.json

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "llama-local": {
      "name": "Llama.cpp (RTX4090)",
      "npm": "@ai-sdk/openai-compatible",
      "options": {
        "baseURL": "http://<YOUR_GPU_SERVER_IP>/v1"
      },
      "models": {
        "unsloth/Qwen3.5-27B-GGUF": {
          "name": "Qwen3.5-27B Q4_K_XL"
        }
      }
    }
  }
}

Залишити коментар