592592
593593 < v-expansion-panel-text >
594594 < v-row class ="px-3 mr-2 ">
595- < v-checkbox v-model ="chatbotStore.thinking " true-icon ='$checkboxIndeterminate '
596- :label ="$t('$vuetify.dataIterator.i.thinking') " color ="error ">
597- </ v-checkbox >
595+ < div class ="ml-3 mt-3 ">
596+ < span class ="mr-2 "> {{ $t('$vuetify.dataIterator.i.reasoning') }}</ span >
597+ < v-btn-toggle color ="primary " v-model ="chatbotStore.reasoning_effort " divided variant ="outlined "
598+ density ="compact ">
599+ < v-btn > none</ v-btn >
600+ < v-btn > low</ v-btn >
601+ < v-btn > Med</ v-btn >
602+ < v-btn > high</ v-btn >
603+ </ v-btn-toggle >
604+ </ div >
605+ < v-spacer > </ v-spacer >
598606 < v-checkbox v-model ="chatbotStore.stream "
599607 :label ="$t('$vuetify.dataIterator.i.stream') " color ="primary ">
600608 </ v-checkbox >
@@ -1938,7 +1946,8 @@ <h5 class="font-weight-bold mb-4">MCP</h5>
19381946 "/v1/openai/chat/completions" ,
19391947 "/openai/v1/chat/completions" ] ,
19401948 model : [
1941- "meta-llama/Llama-3.3-70B-Instruct" ,
1949+ "Qwen/Qwen3-32B" ,
1950+ "Qwen/Qwen3-30B-A3B"
19421951 ] ,
19431952 authPrefix : [ "Bearer" , "Base" , "Token" ] ,
19441953 max_tokens_type : [ "max_tokens" , "max_completion_tokens" , "max_new_tokens" ] ,
@@ -1963,9 +1972,9 @@ <h5 class="font-weight-bold mb-4">MCP</h5>
19631972 const useChatbotStore = defineStore ( "chatbotStore" , {
19641973 state : ( ) => ( {
19651974 apiKey : "" ,
1966- url : "https://ai .aiql.com" ,
1967- path : "/v1/ chat/completions" ,
1968- model : "meta-llama/Llama-3.3-70B-Instruct " ,
1975+ url : "https://api2 .aiql.com" ,
1976+ path : "/chat/completions" ,
1977+ model : "Qwen/Qwen3-32B " ,
19691978 authPrefix : "Bearer" ,
19701979 contentType : "application/json" ,
19711980 max_tokens_type : "max_tokens" ,
@@ -1975,6 +1984,7 @@ <h5 class="font-weight-bold mb-4">MCP</h5>
19751984 method : "POST" ,
19761985 stream : true ,
19771986 thinking : true ,
1987+ reasoning_effort : null ,
19781988 mcp : false
19791989 } ) ,
19801990
@@ -2038,8 +2048,23 @@ <h5 class="font-weight-bold mb-4">MCP</h5>
20382048 body [ chatbotStore . max_tokens_type ] = parseInt ( chatbotStore . max_tokens_value )
20392049 }
20402050
2041- if ( chatbotStore . thinking === true ) {
2042- body [ 'enable_thinking' ] = false
2051+ if ( typeof chatbotStore . reasoning_effort === 'number' ) {
2052+ switch ( chatbotStore . reasoning_effort ) {
2053+ case 0 :
2054+ body [ 'reasoning_effort' ] = 'none' ;
2055+ break ;
2056+ case 1 :
2057+ body [ 'reasoning_effort' ] = 'low' ;
2058+ break ;
2059+ case 2 :
2060+ body [ 'reasoning_effort' ] = 'medium' ;
2061+ break ;
2062+ case 3 :
2063+ body [ 'reasoning_effort' ] = 'high' ;
2064+ break ;
2065+ default :
2066+ break ;
2067+ }
20432068 }
20442069
20452070 if ( chatbotStore . temperature ) {
@@ -2198,11 +2223,14 @@ <h5 class="font-weight-bold mb-4">MCP</h5>
21982223 if ( choice ) {
21992224 if ( target . role == 'assistant' ) {
22002225 if ( typeof choice === 'string' ) {
2201- target . content += choice
2202- } else if ( typeof choice . content === 'string' ) {
2203- target . content += choice . content
2204- } else if ( typeof choice . reasoning_content === 'string' ) {
2205- target . reasoning_content += choice . reasoning_content
2226+ target . content += choice ;
2227+ } else {
2228+ if ( typeof choice . content === 'string' ) {
2229+ target . content += choice . content ;
2230+ }
2231+ if ( typeof choice . reasoning_content === 'string' ) {
2232+ target . reasoning_content += choice . reasoning_content ;
2233+ }
22062234 }
22072235 parseTool ( choice . tool_calls , target )
22082236 }
@@ -2460,7 +2488,7 @@ <h5 class="font-weight-bold mb-4">MCP</h5>
24602488 i : {
24612489 title : 'Interface Configuration' ,
24622490 apikey : 'API Key' ,
2463- thinking : 'Thinking ' ,
2491+ reasoning : 'R-effort ' ,
24642492 endpoint : 'Endpoint' ,
24652493 url : 'URL' ,
24662494 path : 'Path' ,
@@ -2600,7 +2628,7 @@ <h5 class="font-weight-bold mb-4">MCP</h5>
26002628 title : '接口配置' ,
26012629 apikey : 'API 密钥' ,
26022630 endpoint : '端口' ,
2603- thinking : '思考模式 ' ,
2631+ reasoning : '推理负荷 ' ,
26042632 url : '网址' ,
26052633 path : '路径' ,
26062634 model : '模型' ,
0 commit comments