@@ -8,6 +8,23 @@ const reasoningExtraBody = {
88 }
99}
1010
11+ const jsonOutputExtraBody = {
12+ extraBody : {
13+ enable : { response_format : { type : 'json_object' } } ,
14+ disable : null
15+ }
16+ }
17+
18+ const bailianJsonOutputExtraBody = {
19+ extraBody : {
20+ enable : {
21+ response_format : { type : 'json_object' } ,
22+ enable_thinking : false // 千问模型不支持思考模式下输出json
23+ } ,
24+ disable : null
25+ }
26+ }
27+
1128export const DEFAULT_LLM_MODELS = [
1229 {
1330 provider : 'bailian' ,
@@ -21,7 +38,8 @@ export const DEFAULT_LLM_MODELS = [
2138 name : 'qwen-plus' ,
2239 capabilities : {
2340 toolCalling : true ,
24- reasoning : reasoningExtraBody
41+ reasoning : reasoningExtraBody ,
42+ jsonOutput : bailianJsonOutputExtraBody
2543 }
2644 } ,
2745 // 备注:千问多模态模型不支持工具调用;
@@ -30,23 +48,26 @@ export const DEFAULT_LLM_MODELS = [
3048 name : 'qwen3-vl-plus' ,
3149 capabilities : {
3250 vision : true ,
33- reasoning : reasoningExtraBody
51+ reasoning : reasoningExtraBody ,
52+ jsonOutput : bailianJsonOutputExtraBody
3453 }
3554 } ,
3655 {
3756 label : 'Qwen Coder编程模型(PLUS)' ,
3857 name : 'qwen3-coder-plus' ,
3958 capabilities : {
4059 toolCalling : true ,
41- reasoning : reasoningExtraBody
60+ reasoning : reasoningExtraBody ,
61+ jsonOutput : bailianJsonOutputExtraBody
4262 }
4363 } ,
4464 {
4565 label : 'DeepSeek(v3.2)' ,
4666 name : 'deepseek-v3.2-exp' ,
4767 capabilities : {
4868 toolCalling : true ,
49- reasoning : reasoningExtraBody
69+ reasoning : reasoningExtraBody ,
70+ jsonOutput : bailianJsonOutputExtraBody
5071 }
5172 } ,
5273 // 小参数模型
@@ -55,19 +76,29 @@ export const DEFAULT_LLM_MODELS = [
5576 name : 'qwen-flash' ,
5677 capabilities : {
5778 toolCalling : true ,
58- compact : true
79+ compact : true ,
80+ jsonOutput : bailianJsonOutputExtraBody
5981 }
6082 } ,
6183 {
6284 label : 'Qwen Coder编程模型(Flash)' ,
6385 name : 'qwen3-coder-flash' ,
6486 capabilities : {
6587 toolCalling : true ,
66- compact : true
88+ compact : true ,
89+ jsonOutput : bailianJsonOutputExtraBody
6790 }
6891 } ,
69- { label : 'Qwen3(14b)' , name : 'qwen3-14b' , capabilities : { compact : true , toolCalling : true } } ,
70- { label : 'Qwen3(8b)' , name : 'qwen3-8b' , capabilities : { compact : true , toolCalling : true } }
92+ {
93+ label : 'Qwen3(14b)' ,
94+ name : 'qwen3-14b' ,
95+ capabilities : { compact : true , toolCalling : true , jsonOutput : bailianJsonOutputExtraBody }
96+ } ,
97+ {
98+ label : 'Qwen3(8b)' ,
99+ name : 'qwen3-8b' ,
100+ capabilities : { compact : true , toolCalling : true , jsonOutput : bailianJsonOutputExtraBody }
101+ }
71102 ]
72103 } ,
73104 {
@@ -86,7 +117,8 @@ export const DEFAULT_LLM_MODELS = [
86117 enable : { model : 'deepseek-reasoner' } ,
87118 disable : { model : 'deepseek-chat' }
88119 }
89- }
120+ } ,
121+ jsonOutput : jsonOutputExtraBody
90122 }
91123 }
92124 ]
0 commit comments