📚 目录 / Contents

Continue

Use TokenHub with Continue (VSCode/JetBrains)

Continue is an open-source VSCode/JetBrains AI coding assistant.

VSCode Configuration

  1. Install Continue extension
  2. Open config.yaml from the Continue sidebar
  3. Add configuration:
models:
  - name: GPT-4o (TokenHub)
    provider: openai
    model: gpt-4o
    apiBase: https://hubwave.ai/v1
    apiKey: sk-xxxxx
    roles:
      - chat
      - edit
      - apply

  - name: Claude 3.5 Sonnet (TokenHub)
    provider: openai
    model: claude-3-5-sonnet-20241022
    apiBase: https://hubwave.ai/v1
    apiKey: sk-xxxxx
    roles:
      - chat
      - edit

tabAutocompleteModel:
  name: DeepSeek
  provider: openai
  model: deepseek-chat
  apiBase: https://hubwave.ai/v1
  apiKey: sk-xxxxx

embeddingsProvider:
  provider: openai
  model: text-embedding-3-small
  apiBase: https://hubwave.ai/v1
  apiKey: sk-xxxxx