Continue verbinden met OpenLLM Buddy

Connect Continue (VS Code and JetBrains) to OpenLLM Buddy with an OpenAI-compatible model entry in config.yaml.

Coderen · Integratiegids

Wat is Continue?

Continue is an open-source coding assistant for VS Code and JetBrains with chat, inline edit, and autocomplete, configured from a single YAML file. Bezoek Continue.

Waarom OpenLLM Buddy verbinden?

Continue's openai provider accepts a custom apiBase, so your own OpenLLM Buddy deployment can power chat and edits with no extra gateway.

Maak voordat je begint een API-sleutel aan in de console en deploy een model. Gaat er iets mis, voer dan eerst de curl-test in stap 4 uit: geen enkele tool kan een kapot endpoint repareren.

1

Install Continue

Install the Continue extension from the VS Code Marketplace or the JetBrains Marketplace, then open its side panel.

2

Edit config.yaml

Open the config from the gear icon in the Continue panel, or edit ~/.continue/config.yaml directly, and add the model.

~/.continue/config.yaml
yaml
name: OpenLLM Buddy
version: 1.0.0
schema: v1
models:
  - name: OpenLLM Buddy
    provider: openai
    model: gemma4:26b
    apiBase: https://openllmbuddy-proxy.botbuddytech.workers.dev/v1
    apiKey: YOUR_API_KEY
    roles:
      - chat
      - edit
      - apply

Continue reloads the file on save. Add an autocomplete role only if your deployment is fast enough for inline suggestions.

3

Chat and edit

Pick OpenLLM Buddy in the model dropdown. Use Ctrl/Cmd + L for chat and Ctrl/Cmd + I for inline edits on selected code.

4

Het endpoint testen met curl

Controleer of sleutel, URL en model-ID werken voordat je Continue debugt. Een kort JSON-antwoord betekent dat het endpoint gezond is.

Terminal
bash
curl -sS https://openllmbuddy-proxy.botbuddytech.workers.dev/v1/chat/completions   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"model": "gemma4:26b", "messages": [{"role": "user", "content": "Reply with OK"}], "max_tokens": 16}'

Probleemoplossing

  • Model does not appear — YAML indentation errors are silent. Open the Continue logs from the panel menu to see the parse error.
  • Older config.json — newer Continue releases read config.yaml. Use the equivalent provider, model, and apiBase keys if you are still on JSON.
  • 401 of 403 — de API-sleutel is fout, ingetrokken of mist het voorvoegsel Bearer . Maak een nieuwe sleutel aan in de console.
  • 404 op /chat/completions — de base-URL moet eindigen op /v1, zonder /chat/completions erachter en zonder extra pad.
  • Model niet gevonden — het model-ID moet exact overeenkomen met je deployment. Voer de curl-test uit en kopieer het ID dat je hebt gebruikt.
  • Time-outs bij het eerste verzoek — een GPU die inactief was, is mogelijk nog bezig het model te laden. Probeer het na een minuut opnieuw.
  • Verbinding geweigerd vanuit Docker of een externe host — gebruik de openbare HTTPS-base-URL, nooit localhost.

Verbindingsgegevens

Gebruik deze waarden overal waar Continue om een OpenAI-compatible provider vraagt.

Referentie
text
Base URL:  https://openllmbuddy-proxy.botbuddytech.workers.dev/v1
Chat URL:  https://openllmbuddy-proxy.botbuddytech.workers.dev/v1/chat/completions
API-sleutel: je sleutel uit de console
Model-ID:  gemma4:26b