@@ -172,7 +172,6 @@ Component({
172172 allowMultiConversation,
173173 allowVoice,
174174 } = this . data . agentConfig ;
175- console . log ( "allowWebSearch" , allowWebSearch ) ;
176175 allowWebSearch = allowWebSearch === undefined ? true : allowWebSearch ;
177176 allowUploadFile = allowUploadFile === undefined ? true : allowUploadFile ;
178177 allowPullRefresh = allowPullRefresh === undefined ? true : allowPullRefresh ;
@@ -439,7 +438,6 @@ Component({
439438 const res = await this . fetchConversationList ( true , this . data . bot . botId ) ;
440439 if ( res ) {
441440 const { data } = res ;
442- console . log ( "default conversation" , data ) ;
443441 if ( data && ! data . code ) {
444442 // 区分旧的默认会话结构与新的默认会话结构
445443 if ( data . data ) {
@@ -487,7 +485,6 @@ Component({
487485 method : "GET" ,
488486 header : { } ,
489487 success : ( res ) => {
490- console . log ( "conversation list res" , res ) ;
491488 resolve ( res ) ;
492489 } ,
493490 fail ( e ) {
@@ -517,7 +514,6 @@ Component({
517514 } ,
518515 method : "POST" ,
519516 success : ( res ) => {
520- console . log ( "create conversation res" , res ) ;
521517 resolve ( res ) ;
522518 } ,
523519 fail ( e ) {
@@ -567,7 +563,6 @@ Component({
567563 page : this . data . conversationPageOptions . page + 1 ,
568564 } ,
569565 } ) ;
570- console . log ( "conversationPageOptions" , this . data . conversationPageOptions ) ;
571566 // 调用分页接口查询更多
572567 if ( this . data . bot . botId ) {
573568 const res = await this . fetchConversationList ( false , this . data . bot . botId ) ;
@@ -598,19 +593,16 @@ Component({
598593 try {
599594 if ( this . data . bot . botId ) {
600595 const res = await this . fetchConversationList ( false , this . data . bot . botId ) ;
601- console . log ( "res" , res ) ;
602596 if ( res ) {
603597 const { data } = res ;
604598 if ( data && ! data . code ) {
605599 // TODO: 临时倒序处理
606600 const sortData = data . data . sort (
607601 ( a , b ) => new Date ( b . createTime ) . getTime ( ) - new Date ( a . createTime ) . getTime ( )
608602 ) ;
609- console . log ( "sortData" , sortData ) ;
610603 const finalConData = this . data . defaultConversation
611604 ? sortData . concat ( this . data . defaultConversation )
612605 : sortData ;
613- console . log ( "finalConData" , finalConData ) ;
614606 this . setData ( {
615607 conversations : finalConData ,
616608 transformConversations : this . transformConversationList ( finalConData ) ,
@@ -644,7 +636,6 @@ Component({
644636 earlyCon . push ( item ) ;
645637 }
646638 }
647- console . log ( "todayCon curMonthCon earlyCon" , todayCon , curMonthCon , earlyCon ) ;
648639 return {
649640 todayCon,
650641 curMonthCon,
@@ -718,10 +709,12 @@ Component({
718709 const transformToolCallObj = {
719710 id : curParam . tool_call . id ,
720711 name : this . transformToolName ( curParam . tool_call . function . name ) ,
712+ rawParams : curParam . tool_call . function . arguments ,
721713 callParams : "```json\n\n" + JSON . stringify ( curParam . tool_call . function . arguments , null , 2 ) + "\n```" ,
722714 content : ( ( curContent && curContent . content ) || "" ) . replaceAll ( "\t" , "" ) . replaceAll ( "\n" , "\n\n" ) ,
723715 } ;
724716 if ( curResult ) {
717+ transformToolCallObj . rawResult = curResult . result ;
725718 transformToolCallObj . callResult = "```json\n\n" + JSON . stringify ( curResult . result , null , 2 ) + "\n```" ;
726719 }
727720 if ( curError ) {
@@ -1847,7 +1840,6 @@ Component({
18471840 } ,
18481841 method : "POST" ,
18491842 success : ( res ) => {
1850- console . log ( "create text-to-speech task res" , res ) ;
18511843 resolve ( res ) ;
18521844 } ,
18531845 fail ( e ) {
@@ -1856,7 +1848,6 @@ Component({
18561848 } ,
18571849 } ) ;
18581850 } ) ;
1859- console . log ( "text-to-speech" , res ) ;
18601851 const { data } = res ;
18611852 if ( data && data . TaskId ) {
18621853 const taskId = data . TaskId ;
@@ -1873,7 +1864,6 @@ Component({
18731864 } ,
18741865 method : "GET" ,
18751866 success : ( res ) => {
1876- console . log ( "create text-to-speech task res" , res ) ;
18771867 resolve ( res ) ;
18781868 } ,
18791869 fail ( e ) {
@@ -1882,7 +1872,6 @@ Component({
18821872 } ,
18831873 } ) ;
18841874 } ) ;
1885- console . log ( "query task res" , res ) ;
18861875 const { data } = res ;
18871876 if ( data . code || data . Status === 2 ) {
18881877 loopQueryStatus = false ;
@@ -2033,7 +2022,6 @@ Component({
20332022 } ,
20342023 chooseSpeed ( e ) {
20352024 const speed = e . currentTarget . dataset . speed ;
2036- console . log ( "choose speed" , speed ) ;
20372025 const audioContext = this . data . audioContext ;
20382026 audioContext . showSpeedList = ! this . data . audioContext . showSpeedList ;
20392027 audioContext . currentSpeed = Number ( speed ) ;
@@ -2081,7 +2069,6 @@ Component({
20812069 } ) ;
20822070 return ;
20832071 }
2084- console . log ( "touchMove" ) ;
20852072 if ( ! this . data . longPressTriggered ) return ;
20862073 const { clientY } = e . touches [ 0 ] ;
20872074 const deltaY = clientY - this . data . startY ;
@@ -2147,7 +2134,6 @@ Component({
21472134 } ,
21482135 startRecord ( ) {
21492136 console . log ( "startRecord sendStatus" , this . data . sendStatus ) ;
2150- console . log ( "recorderManager" , this . data . recorderManager ) ;
21512137 if ( this . data . recorderManager && this . data . sendStatus === 1 ) {
21522138 console . log ( "开始录音" ) ;
21532139 this . data . recorderManager . start ( this . data . recordOptions ) ;
0 commit comments