Source: https://aiprimetech.io/zh/docs/guides/zed/ [首页](/zh/) / [文档](/zh/docs/) / Zed # Zed 在 Zed 编辑器中将网关添加为自定义助手提供商。 复制页面 [ 以 Markdown 查看](/zh/docs/guides/zed.md) [ 向 ChatGPT 提问](https://chatgpt.com/?q=Read%20https%3A//aiprimetech.io/docs/guides/zed.md%20and%20answer%20questions%20about%20it.%20Start%20with%20a%20short%20summary.) [ 在 Claude 中提问](https://claude.ai/new?q=Read%20https%3A//aiprimetech.io/docs/guides/zed.md%20and%20answer%20questions%20about%20it.%20Start%20with%20a%20short%20summary.) Zed 的助手支持兼容 OpenAI 的自定义端点,可在以下位置配置: settings.json. ## 配置 ``` Copy{ "language_models": { "openai": { "api_url": "https://aiprimetech.io/v1", "available_models": [ {"name": "claude-sonnet-4-6", "display_name": "Claude Sonnet 4.6", "max_tokens": 200000}, {"name": "claude-opus-4-8", "display_name": "Claude Opus 4.8", "max_tokens": 200000} ] } } } ``` - 打开命令面板并选择 zed:打开设置. - 粘贴上面的配置块,并将其合并到现有设置中。 - 重启 Zed,打开助手面板,并在提示时输入你的 sk- 密钥。 - 选择一个你声明的模型。 Zed 的设置 schema 会随版本变化。如果 language_models 不被接受,请查阅 Zed 自己的助手配置文档,确认当前的键名 — 需要提供的值始终相同:基础 URL https://aiprimetech.io/v1 加上你的密钥。 [Chat CompletionsZed 使用的格式](/zh/docs/api-reference/chat-completions/)[基础 URL为什么这里需要 /v1](/zh/docs/getting-started/base-urls/) [上一页Aider](/zh/docs/guides/aider/)[下一页Continue](/zh/docs/guides/continue/)