File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
src/backend/src/modules/puterai Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -598,6 +598,9 @@ class AIChatService extends BaseService {
598
598
try {
599
599
await ret . result . value . init_chat_stream ( { chatStream } ) ;
600
600
} catch ( e ) {
601
+ this . errors . report ( 'error during stream response' , {
602
+ source : e ,
603
+ } )
601
604
stream . write ( JSON . stringify ( {
602
605
type : 'error' ,
603
606
message : e . message ,
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ class AIChatToolUseStream extends AIChatConstructStream {
49
49
if ( this . buffer . trim ( ) === '' ) {
50
50
this . buffer = '{}' ;
51
51
}
52
+ if ( process . env . DEBUG ) console . log ( 'BUFFER BEING PARSED' , this . buffer ) ;
52
53
const str = JSON . stringify ( objectAssignTop ( {
53
54
...this . contentBlock ,
54
55
input : JSON . parse ( this . buffer ) ,
You can’t perform that action at this time.
0 commit comments