File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
livekit-agents/livekit/agents/telemetry Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -311,6 +311,12 @@ def _log(body: str, attributes: dict) -> None:
311311 part .headers ["Content-Type" ] = "application/protobuf"
312312 part .headers ["Content-Length" ] = str (len (header_bytes ))
313313
314+ chat_history_json = json .dumps (report .chat_history .to_dict (exclude_timestamp = False ))
315+ part = mp .append (chat_history_json )
316+ part .set_content_disposition ("form-data" , name = "chat_history" , filename = "chat_history.json" )
317+ part .headers ["Content-Type" ] = "application/json"
318+ part .headers ["Content-Length" ] = str (len (chat_history_json ))
319+
314320 if report .audio_recording_path and report .audio_recording_started_at :
315321 try :
316322 async with aiofiles .open (report .audio_recording_path , "rb" ) as f :
You can’t perform that action at this time.
0 commit comments