update:简化新闻源配置

This commit is contained in:
hrz
2025-06-30 14:24:46 +08:00
parent 54ccae8665
commit 7619979046
5 changed files with 151 additions and 88 deletions
@@ -1,6 +1,3 @@
-- 更新 get_news_from_newsnow 插件配置,添加新闻源配置字段
-- 执行时间:2025-06-25
-- 更新现有的 get_news_from_newsnow 插件配置
UPDATE ai_model_provider
SET fields = JSON_ARRAY(
@@ -12,10 +9,10 @@ SET fields = JSON_ARRAY(
),
JSON_OBJECT(
'key', 'news_sources',
'type', 'json',
'type', 'string',
'label', '新闻源配置',
'default', '{"thepaper":"澎湃新闻","baidu":"百度热搜","cls-depth":"财联社"}'
'default', '澎湃新闻;百度热搜;财联社'
)
)
WHERE provider_code = 'get_news_from_newsnow'
AND model_type = 'Plugin';
AND model_type = 'Plugin';
@@ -227,12 +227,12 @@ databaseChangeLog:
encoding: utf8
path: classpath:db/changelog/202506191643.sql
- changeSet:
id: 202506251619
id: 202506251620
author: Tink
changes:
- sqlFile:
encoding: utf8
path: classpath:db/changelog/202506251619.sql
path: classpath:db/changelog/202506251620.sql
- changeSet:
id: 202506261637
author: hrz