File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -611,6 +611,7 @@ def post(self):
611611 source_log_docs = []
612612 tool_calls = []
613613 stream_ended = False
614+ thought = ""
614615
615616 for line in complete_stream (
616617 question = question ,
@@ -633,6 +634,8 @@ def post(self):
633634 source_log_docs = event ["source" ]
634635 elif event ["type" ] == "tool_calls" :
635636 tool_calls = event ["tool_calls" ]
637+ elif event ["type" ] == "thought" :
638+ thought = event ["thought" ]
636639 elif event ["type" ] == "error" :
637640 logger .error (f"Error from stream: { event ['error' ]} " )
638641 return bad_request (500 , event ["error" ])
@@ -664,6 +667,7 @@ def post(self):
664667 conversation_id ,
665668 question ,
666669 response_full ,
670+ thought ,
667671 source_log_docs ,
668672 tool_calls ,
669673 llm ,
You can’t perform that action at this time.
0 commit comments