更新讯飞星火认知大模型配置的说明文档

This commit is contained in:
FAN-yeB
2025-09-22 10:00:29 +08:00
parent ec2b52ccac
commit 646f4cbfe9
2 changed files with 12 additions and 12 deletions
@@ -1,20 +1,19 @@
delete from `ai_model_config` where id = 'LLM_XunfeiSparkLLM'; delete from `ai_model_config` where id = 'LLM_XunfeiSparkLLM';
INSERT INTO `ai_model_config` VALUES ('LLM_XunfeiSparkLLM', 'LLM', '讯飞星火认知大模型', '讯飞星火认知大模型', 0, 1, '{"type": "openai", "model_name": "generalv3.5", "base_url": "https://spark-api-open.xf-yun.com/v1", "api_key": "你的api_key", "temperature": 0.5, "max_tokens": 2048, "top_p": 1.0, "frequency_penalty": 0.0}', 'https://www.xfyun.cn/doc/spark/HTTP%E8%B0%83%E7%94%A8%E6%96%87%E6%A1%A3.html', '讯飞星火认知大模型,支持多轮对话、文本生成等功能', 14, NULL, NULL, NULL, NULL); INSERT INTO `ai_model_config` VALUES ('LLM_XunfeiSparkLLM', 'LLM', '讯飞星火认知大模型', '讯飞星火认知大模型', 0, 1, '{"type": "openai", "model_name": "generalv3.5", "base_url": "https://spark-api-open.xf-yun.com/v1", "api_password": "你的api_password", "temperature": 0.5, "max_tokens": 2048, "top_p": 1.0, "frequency_penalty": 0.0}', 'https://www.xfyun.cn/doc/spark/HTTP%E8%B0%83%E7%94%A8%E6%96%87%E6%A1%A3.html', '讯飞星火认知大模型,支持多轮对话、文本生成等功能', 14, NULL, NULL, NULL, NULL);
-- 更新讯飞星火认知大模型配置的说明文档 -- 更新讯飞星火认知大模型配置的说明文档
UPDATE `ai_model_config` SET UPDATE `ai_model_config` SET
`doc_link` = 'https://www.xfyun.cn/doc/spark/HTTP%E8%B0%83%E7%94%A8%E6%96%87%E6%A1%A3.html', `doc_link` = 'https://www.xfyun.cn/doc/spark/HTTP%E8%B0%83%E7%94%A8%E6%96%87%E6%A1%A3.html',
`remark` = '讯飞星火认知大模型配置说明: `remark` = '讯飞星火认知大模型配置说明:
1. https://www.xfyun.cn/ 1. https://www.xfyun.cn/
2. API Key 2. API Password
3. 3.
- api_key: API密钥 - api_password: API Password
- model_name: generalv3.5generalv3等版本 - model_name: generalv3.5generalv3等版本
- base_url: API地址https://spark-api-open.xf-yun.com/v1 - base_url: API地址https://spark-api-open.xf-yun.com/v1
- temperature: 0-10.5 - temperature: 0-10.5
- max_tokens: token数2048 - max_tokens: token数2048
- top_p: 1.0 - top_p: 1.0
- frequency_penalty: 0.0 - frequency_penalty: 0.0
4. 4. api_password,api_password
5. OpenAI接口格式使OpenAI Provider
' WHERE `id` = 'LLM_XunfeiSparkLLM'; ' WHERE `id` = 'LLM_XunfeiSparkLLM';
@@ -367,13 +367,6 @@ databaseChangeLog:
encoding: utf8 encoding: utf8
path: classpath:db/changelog/202509191545.sql path: classpath:db/changelog/202509191545.sql
- changeSet:
id: 202509191739
author: fyb
changes:
- sqlFile:
encoding: utf8
path: classpath:db/changelog/202509191739.sql
- changeSet: - changeSet:
id: 202509220926 id: 202509220926
@@ -382,3 +375,11 @@ databaseChangeLog:
- sqlFile: - sqlFile:
encoding: utf8 encoding: utf8
path: classpath:db/changelog/202509220926.sql path: classpath:db/changelog/202509220926.sql
- changeSet:
id: 202509220958
author: fyb
changes:
- sqlFile:
encoding: utf8
path: classpath:db/changelog/202509220958.sql