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

# AI 设置

> 如何为知行之桥中的 AI 功能配置 AI 提供商设置。

此部分包含控制 知行之桥 产品内 AI 功能行为的配置选项。要将外部 AI 客户端连接到此 知行之桥 实例，请参阅[远程 MCP 服务器](https://docs.kasoftware.com/26.4/self-hosted/zh/admin-api/remote-mcp-server.md)。您还可以使用已配置的提供商在**日志**页面中[诊断交易错误](https://docs.kasoftware.com/26.4/self-hosted/zh/getting-started/administration/activity.md#诊断交易错误)。

点击**配置**即可打开**配置 AI 设置**窗格。

![Configure AI settings pane](https://mintcdn.com/qiao/V5zXPPmcRAz2rNUe/26.4/images/settings_ai.png?fit=max\&auto=format\&n=V5zXPPmcRAz2rNUe\&q=85\&s=2a77deb3d6d0ed34c97f1cf55f214bc4)

| 设置 | 描述 |
| - | - |
| **AI 提供商** | 从列表中选择 AI 提供商。目前支持的提供商包括 Claude、DeepSeek、Gemini、Grok、Ollama（云端和本地）、OpenAI 以及 OpenAI Compatible（OpenAI 兼容平台）。接下来的设置将根据所选的提供商而有所不同。 |
| **API 密钥** | 输入 API 密钥以进行请求身份验证（除 Ollama 本地版外的所有提供商均需提供）。 |
| **基础 URL** | 指定 *Ollama (Local)* 或 *OpenAI Compatible* 服务运行的端点 URL（例如，`http://localhost:11434`）。 |
| **模型** | 选择要使用的特定语言模型。可用的模型取决于提供商。 |

> [!NOTE]
>
> 并非所有开源模型都支持设置 JSON 架构以用于 知行之桥 所需的响应。请确保选择的**模型**具备此功能。

使用[性能设置](https://docs.kasoftware.com/26.4/self-hosted/zh/getting-started/administration/settings/performance-settings.md#分析工作池)中的**分析工作池**按钮分析工作线程池时，也需要配置 AI 提供商。配置提供商之前，该按钮处于禁用状态。


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