Elffuss BraidHub

kikocis/continue public

e8ee99375f3e · 2.2 KiBSourceRawPermalink

title: OpenAI slug: ../openai

:::info 你可以从 OpenAI 控制台 获取 API key :::

聊天模型

我们推荐配置 GPT-4o 作为你的聊天模型。

{
  "models": [
    {
      "title": "GPT-4o",
      "provider": "openai",
      "model": "gpt-4o",
      "apiKey": "[API_KEY]"
    }
  ]
}

自动补全模型

OpenAI 当前没有提供任何自动补全模型。

点击这里 查看自动补全模型提供者列表。

嵌入模型

我们推荐配置 text-embedding-3-large 作为你的嵌入模型。

{
  "embeddingsProvider": {
    "provider": "openai",
    "model": "text-embedding-3-large",
    "apiKey": "[API_KEY]"
  }
}

重排序模型

OpenAI 当前没有提供任何重排序模型。

点击这里 查看重排序模型提供者列表。

OpenAI 兼容服务器 / API

OpenAI 兼容服务器

OpenAI 兼容 API

如果你使用 OpenAI 兼容服务器 / API ,你可以像这样修改 apiBase :

{
  "models": [
    {
      "title": "OpenAI-compatible server / API",
      "provider": "openai",
      "model": "MODEL_NAME",
      "apiKey": "EMPTY",
      "apiBase": "http://localhost:8000/v1"
    }
  ]
}

为了使用 chat/completions 代替 completions 端点,你可以设置

"useLegacyCompletionsEndpoint": false