> ## Documentation Index
> Fetch the complete documentation index at: https://apione.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# VS Code 与 GitHub Copilot 接入 APIONE

> 通过 VS Code 的自定义模型端点配置 APIONE。

## 选择自定义端点

在支持自定义模型端点的 VS Code 版本中，打开命令面板，运行 **Chat: Manage Language Models**，选择 **Add Models → Custom Endpoint**。如入口不可见，先查看当前版本与组织策略是否允许自定义提供商。

创建名为 APIONE 的模型组，按提示保存 [APIONE API Key](https://apione.ai/zh/app/api-keys)。不要安装其他服务商的专属扩展来填写 APIONE 密钥。

## 填写模型连接

| 项目 | 填写内容 |
| - | - |
| 提供商 / 分组名称 | APIONE |
| API 类型 | 按模型协议选择 chat-completions、responses 或 messages |
| 模型 ID | APIONE 当前密钥可用的实际 ID |
| Chat Completions 完整 URL | [https://api.apione.ai/v1/chat/completions](https://api.apione.ai/v1/chat/completions) |
| Responses 完整 URL | [https://api.apione.ai/v1/responses](https://api.apione.ai/v1/responses) |
| Messages 完整 URL | [https://api.apione.ai/v1/messages](https://api.apione.ai/v1/messages) |

这里的 URL 是完整请求地址；如果界面要求的是 Base URL，则 OpenAI 兼容模式填写 [https://api.apione.ai/v1](https://api.apione.ai/v1)。上下文长度、输出上限、视觉和工具能力应依据模型实际参数填写。

## 选择并测试

保存后，在聊天面板模型选择器中选中 APIONE 下的模型。先发送简单问题，再测试 Agent 模式中的只读文件操作；不支持工具调用的模型不适合 Agent 工作流。

自定义聊天模型的设置不代表所有 Copilot 功能都会改用该端点。行内补全、组织功能以及订阅权限仍受客户端规则约束。通过 APIONE 请求记录确认实际路由。

## 排查连接

找不到模型时，重新打开模型选择器并检查模型组是否启用。遇到 401 检查密钥，404 检查 API 类型与完整 URL，工具错误则核对模型能力。

入口及配置格式参见 [VS Code 自定义语言模型文档](https://code.visualstudio.com/docs/agent-customization/language-models)。

***

[返回集成目录](https://apione.ai/docs/guides/clients.md) · [模型选择](https://apione.ai/docs/models/catalog.md) · [错误排查](https://apione.ai/docs/support/errors.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.