OpenCode
Pievienojiet OpenCode, izmantojot ar Anthropic saderīgu Model Gate API
OpenCode
Konfigurējiet Anthropic pakalpojumu sniedzēju ~/.config/opencode/opencode.jsonc operētājsistēmā Linux/macOS vai C:\Users\%USERNAME%\.config\opencode\opencode.jsonc operētājsistēmā Windows.
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"anthropic": {
"options": {
"baseURL": "https://api.model-gate.com/v1",
"apiKey": "mg_live_..."
}
}
}
}
OpenCode, baseURL ietver /v1. Saglabājiet failu un palaidiet OpenCode kā parasti.