集成/Continue 接入

通过带自定义 apiBase 的 OpenAI provider,把 UniGateway 接入 Continue。

Continue 接入

通过 openai provider 和自定义 apiBase 在 Continue 中配置 UniGateway。

前置条件

  • 已安装 Continue 扩展
  • 已获取 UniGateway API Key
  • 已通过 GET /v1/models 获取可用模型 ID

配置

name: UniGateway
version: 0.0.1
schema: v1

models:
  - name: UniGateway Chat
    provider: openai
    model: gpt-5.2
    apiBase: https://api.unigateway.ai/v1
    apiKey: <YOUR_UNIGATEWAY_API_KEY>

apiBase 中保留 /v1 后缀。

验证

发送一条简单消息确认连接正常。聊天功能生效后,按需开启编辑、自动补全或其他角色。

常见问题

问题处理方式
配置加载但模型失败检查 apiBaseapiKey 和模型 ID
自动补全效果低于聊天将每种角色视为独立灰度项
流式或推理行为异常用 Continue 的请求模式验证模型行为