@@ -3,6 +3,7 @@ import icon_bdyzn_colorful from '@/assets/model/icon_bdyzn_colorful.png'
33import icon_deepseek_colorful from '@/assets/model/icon_deepseek_colorful.png'
44import icon_txy_colorful from '@/assets/model/icon_txy_colorful.png'
55import icon_xfhx_colorful from '@/assets/model/icon_xfhx_colorful.png'
6+ import icon_gemini_colorful from '@/assets/model/icon_gemini_colorful.png'
67
78type ModelArg = { key : string ; val ?: string | number ; type : string ; range ?: string }
89type ModelOption = { name : string ; api_domain ?: string ; args ?: ModelArg [ ] }
@@ -24,7 +25,29 @@ export const supplierList: Array<{
2425 model_config : {
2526 0 : {
2627 api_domain : 'https://dashscope.aliyuncs.com/compatible-mode/v1' ,
27- model_options : [ { name : 'qwen-plus' } ] ,
28+ common_args : [
29+ { key : 'temperature' , val : 1.0 , type : 'number' , range : '[0, 2)' } ,
30+ { key : 'extra_body' , val : '{"enable_thinking": true}' , type : 'json' } ,
31+ ] ,
32+ model_options : [
33+ { name : 'qwen-plus' } ,
34+ { name : 'qwen-plus-latest' } ,
35+ { name : 'qwen-max' } ,
36+ { name : 'qwen-max-latest' } ,
37+ { name : 'qwen-turbo' } ,
38+ { name : 'qwen-turbo-latest' } ,
39+ { name : 'qwq-plus' } ,
40+ { name : 'qwq-plus-latest' } ,
41+ { name : 'qwen-long' } ,
42+ { name : 'qwen-long-latest' } ,
43+ { name : 'qwen-omni-turbo' } ,
44+ { name : 'qwen-omni-turbo-realtime' } ,
45+ { name : 'qwen-omni-turbo-realtime-latest' } ,
46+ { name : 'qvq-max' } ,
47+ { name : 'qvq-max-latest' } ,
48+ { name : 'qvq-plus' } ,
49+ { name : 'qvq-plus-latest' } ,
50+ ] ,
2851 } ,
2952 } ,
3053 } ,
@@ -114,6 +137,24 @@ export const supplierList: Array<{
114137 } ,
115138 } ,
116139 } ,
140+ {
141+ id : 6 ,
142+ name : 'Gemini' ,
143+ icon : icon_gemini_colorful ,
144+ model_config : {
145+ 0 : {
146+ api_domain : 'https://generativelanguage.googleapis.com/v1beta/openai/' ,
147+ common_args : [ { key : 'temperature' , val : 1.0 , type : 'number' , range : '[0, 2]' } ] ,
148+ model_options : [
149+ { name : 'gemini-2.5-pro' } ,
150+ { name : 'gemini-2.5-flash' } ,
151+ { name : 'gemini-2.5-flash-lite' } ,
152+ { name : 'gemini-2.0-flash' } ,
153+ { name : 'gemini-2.0-flash-lite' } ,
154+ ] ,
155+ } ,
156+ } ,
157+ } ,
117158]
118159
119160export const base_model_options = ( supplier_id : number , model_type ?: number ) => {
0 commit comments