Update transcrip.

This commit is contained in:
retoor 2025-03-08 17:52:12 +01:00
parent 0b61e1c0cf
commit bdd9ad0c5a

View File

@ -405,6 +405,7 @@ class Agent:
response = event_handler.message
log.debug(f"Received response: {response} from assistant {self.assistant.id} in thread {self.thread.id}.")
log.debug(f"Result of communicate (last returned message): {response} from assistant {self.assistant.id} in thread {self.thread.id}.")
self.transcript.append(dict(role="assistant", content=response))
return response
except openai.APIError as ex:
log.error(f"Error: {ex}")