feat(web-ai): support qwen web search agent
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
-- 千问联网检索 Agent 配置;API Key 继续使用 aihr_web_search_provider.api_key 加密保存。
|
||||
SET @aihr_schema = DATABASE();
|
||||
|
||||
SET @web_agent_id_exists = (
|
||||
SELECT COUNT(*) FROM information_schema.columns
|
||||
WHERE table_schema = @aihr_schema AND table_name = 'aihr_web_search_provider' AND column_name = 'agent_id'
|
||||
);
|
||||
SET @web_agent_id_ddl = IF(@web_agent_id_exists = 0,
|
||||
'ALTER TABLE aihr_web_search_provider ADD COLUMN agent_id varchar(100) DEFAULT NULL COMMENT ''千问联网检索 Agent ID'' AFTER api_key',
|
||||
'SELECT 1');
|
||||
PREPARE aihr_web_agent_id_stmt FROM @web_agent_id_ddl;
|
||||
EXECUTE aihr_web_agent_id_stmt;
|
||||
DEALLOCATE PREPARE aihr_web_agent_id_stmt;
|
||||
|
||||
SET @web_agent_version_exists = (
|
||||
SELECT COUNT(*) FROM information_schema.columns
|
||||
WHERE table_schema = @aihr_schema AND table_name = 'aihr_web_search_provider' AND column_name = 'agent_version'
|
||||
);
|
||||
SET @web_agent_version_ddl = IF(@web_agent_version_exists = 0,
|
||||
'ALTER TABLE aihr_web_search_provider ADD COLUMN agent_version varchar(20) DEFAULT NULL COMMENT ''千问 Agent 版本:beta/release'' AFTER agent_id',
|
||||
'SELECT 1');
|
||||
PREPARE aihr_web_agent_version_stmt FROM @web_agent_version_ddl;
|
||||
EXECUTE aihr_web_agent_version_stmt;
|
||||
DEALLOCATE PREPARE aihr_web_agent_version_stmt;
|
||||
Reference in New Issue
Block a user