diff --git a/README.md b/README.md index 6d01ce1c6..08d10d02d 100644 --- a/README.md +++ b/README.md @@ -256,7 +256,7 @@ Websocket接口地址: wss://2662r3426b.vicp.fun/xiaozhi/v1/ | 使用方式 | 支持平台 | 免费平台 | |:---:|:---:|:---:| -| OpenAI 接口调用 | 阿里百炼、火山引擎、DeepSeek、智谱、Gemini、科大讯飞、LM Studio | 智谱、Gemini | +| OpenAI 接口调用 | 阿里百炼、火山引擎、DeepSeek、智谱、Gemini、科大讯飞、LM Studio、Atlas Cloud | 智谱、Gemini | | ollama 接口调用 | Ollama | - | | dify 接口调用 | Dify | - | | fastgpt 接口调用 | Fastgpt | - | diff --git a/main/manager-api/src/main/resources/db/changelog/202611021000.sql b/main/manager-api/src/main/resources/db/changelog/202611021000.sql new file mode 100644 index 000000000..9f4ec4316 --- /dev/null +++ b/main/manager-api/src/main/resources/db/changelog/202611021000.sql @@ -0,0 +1,8 @@ +-- 新增 Atlas Cloud(OpenAI 兼容网关)LLM 配置 +delete from `ai_model_config` where id = 'LLM_AtlasCloudLLM'; +INSERT INTO `ai_model_config` VALUES ('LLM_AtlasCloudLLM', 'LLM', 'AtlasCloudLLM', 'Atlas Cloud', 0, 1, '{"type": "openai", "base_url": "https://api.atlascloud.ai/v1", "model_name": "deepseek-ai/deepseek-v4-flash", "api_key": "你的api_key"}', 'https://www.atlascloud.ai/docs', 'Atlas Cloud 配置说明: +1. Atlas Cloud 是 OpenAI 兼容的多模型 API 网关 +2. 在 https://console.atlascloud.ai/api-keys 获取 API Key +3. 可用模型列表见 https://api.atlascloud.ai/v1/models ,model_name 形如 deepseek-ai/deepseek-v4-flash +4. 填入 api_key 后保存即可使用 +', 15, NULL, NULL, NULL, NULL); diff --git a/main/manager-api/src/main/resources/db/changelog/db.changelog-master.yaml b/main/manager-api/src/main/resources/db/changelog/db.changelog-master.yaml index b61f90083..b8c933f80 100644 --- a/main/manager-api/src/main/resources/db/changelog/db.changelog-master.yaml +++ b/main/manager-api/src/main/resources/db/changelog/db.changelog-master.yaml @@ -774,6 +774,13 @@ databaseChangeLog: - sqlFile: encoding: utf8 path: classpath:db/changelog/202610302051.sql + - changeSet: + id: 202611021000 + author: binyangzhu000-sudo + changes: + - sqlFile: + encoding: utf8 + path: classpath:db/changelog/202611021000.sql - changeSet: id: 202611021200 author: heydryft diff --git a/main/xiaozhi-server/config.yaml b/main/xiaozhi-server/config.yaml index a20ddce79..2c0427850 100644 --- a/main/xiaozhi-server/config.yaml +++ b/main/xiaozhi-server/config.yaml @@ -714,6 +714,15 @@ LLM: base_url: https://ai-gateway.vei.volces.com/v1 model_name: doubao-pro-32k-functioncall api_key: 你的网关访问密钥 + AtlasCloudLLM: + # Atlas Cloud - OpenAI 兼容的多模型 API 网关 + # 定义LLM API类型 + type: openai + # 可在这里找到你的api key https://console.atlascloud.ai/api-keys + # 可用模型列表:https://api.atlascloud.ai/v1/models ,文档:https://www.atlascloud.ai/docs + base_url: https://api.atlascloud.ai/v1 + model_name: deepseek-ai/deepseek-v4-flash + api_key: 你的atlascloud api key LMStudioLLM: # 定义LLM API类型 type: openai