This is an automated email from the ASF dual-hosted git repository.

hefengen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu.git


The following commit(s) were added to refs/heads/master by this push:
     new 9f487d717b [fix] fix ai plugin sql (#5990)
9f487d717b is described below

commit 9f487d717bd67fb813faa81ccdfbb0e04df43a08
Author: aias00 <[email protected]>
AuthorDate: Mon Apr 7 16:44:18 2025 +0800

    [fix] fix ai plugin sql (#5990)
    
    * [fix] fix ai plugin sql
    
    * [fix] fix ai plugin sql
---
 shenyu-admin/src/main/resources/sql-script/h2/schema.sql | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/shenyu-admin/src/main/resources/sql-script/h2/schema.sql 
b/shenyu-admin/src/main/resources/sql-script/h2/schema.sql
index dc1d7485a9..9390d89d3c 100644
--- a/shenyu-admin/src/main/resources/sql-script/h2/schema.sql
+++ b/shenyu-admin/src/main/resources/sql-script/h2/schema.sql
@@ -587,8 +587,7 @@ INSERT IGNORE INTO `plugin` (`id`, `name`, `role`, `sort`, 
`config`, `enabled`)
 
 INSERT IGNORE INTO `plugin` (`id`, `name`, `role`, `sort`, `config`, 
`enabled`) VALUES ('52', 'aiPrompt', 'Ai', 170, null, '0');
 
-INSERT IGNORE INTO `plugin` (`id`, `name`, `role`, `sort`, `config`, 
`enabled`) VALUES ('50', 'aiProxy', 'Ai', 200, 
'{"provider":"OpenAI","baseUrl":"https://api.openai.com/v1/chat/completions","model":"gpt-4o-mini","apiKey":"your_api_key","temperature":"0.5","maxTokens":"1000","stream":"false","prompt":""}',
 '0');
-INSERT IGNORE INTO `plugin` (`id`, `name`, `role`, `sort`, `config`, 
`enabled`) VALUES ('51', 'aiStatistic', 'Ai', 171, null, '0');
+INSERT IGNORE INTO `plugin` (`id`, `name`, `role`, `sort`, `config`, 
`enabled`) VALUES ('51', 'aiTokenLimiter', 'Ai', 171, null, '0');
 
 /*insert plugin_handle data for sentinel*/
 INSERT IGNORE INTO plugin_handle (`id`, 
`plugin_id`,`field`,`label`,`data_type`,`type`,`sort`,`ext_obj`) VALUES 
('1529402613195784246', '10', 'flowRuleGrade', 'flowRuleGrade', 3, 2, 8, 
'{"required":"1","defaultValue":"1","rule":""}');

Reply via email to