> For the complete documentation index, see [llms.txt](https://docs.chatboxai.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chatboxai.app/guides/providers.md).

# 模型配置

快速配置自定义 AI 提供方

1. 打开Chatbox，点击侧边栏设置按钮，进入设置页面
2. 点击模型提供方选项

<figure><img src="https://527298948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJi6ZJa1RW8EZ55DU9bOD%2Fuploads%2FDjlvCq1NgtOaSizvkT5g%2Fimage.png?alt=media&amp;token=1fe54f1c-d5a2-4d26-92d5-a53dc5487522" alt="" width="375"><figcaption></figcaption></figure>

3. 如果没有需要的 AI 提供商，可以点击底部的“添加”按钮来添加提供商。
4. 填写API提供方名称，根据提供方的API类型选择合适的选项，如GPT模型选择OpenAI API兼容，Gemini模型选择Google Gemini兼容

<figure><img src="https://527298948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJi6ZJa1RW8EZ55DU9bOD%2Fuploads%2FlqSZ2iKwhzqKEn5oNgYe%2Fimage.png?alt=media&amp;token=0a5f81d7-2b22-4c03-b4bb-997af8aaf914" alt="" width="375"><figcaption></figcaption></figure>

5. 按照提供方的信息，填写好API密钥和API主机，API路径一般可以不用填写，默认为`/v1/chat/completions`，具体参考提供方的信息

   <figure><img src="https://527298948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJi6ZJa1RW8EZ55DU9bOD%2Fuploads%2FDQqqAqIrlVKqbRLSDuAK%2Fimage.png?alt=media&amp;token=02a16e73-a1fe-406d-87ea-1eb90643b0ea" alt="" width="375"><figcaption></figcaption></figure>
6. 添加至少一个模型，勾选模型对应的能力配置（可选，不配置视为纯文本模型）

<figure><img src="https://527298948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJi6ZJa1RW8EZ55DU9bOD%2Fuploads%2F0r1mKyhoCowH5YQjdbe1%2Fimage.png?alt=media&amp;token=e459e73b-45e5-46d2-be3e-14eda984df10" alt="" width="375"><figcaption></figcaption></figure>

7. 保存后，点击“检查”按钮，提示连接成功

<figure><img src="https://527298948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJi6ZJa1RW8EZ55DU9bOD%2Fuploads%2FhgAFyaUAPnGZT01yTAdQ%2Fimage.png?alt=media&amp;token=4439e1a2-05f6-4944-8e70-b1c05ea7c87e" alt="" width="375"><figcaption></figcaption></figure>

8. 回到首页，创建新对话，可以发起聊天

   <figure><img src="https://527298948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJi6ZJa1RW8EZ55DU9bOD%2Fuploads%2FVdkOTMvHYr11Y6IX44Tb%2Fimage.png?alt=media&amp;token=8604e3e0-4dd6-42ce-bfe5-dd7ab8e1c627" alt="" width="375"><figcaption></figcaption></figure>
