is there any recommended way to truncate the conve...
# agents
a
is there any recommended way to truncate the conversation history before we generate the llm response?
f
OpenAI has a truncation setting for their realtime model configuring-truncation-settings, or you can manually do so modify-context-before-llm
a
thanks for your response. I'm not using realtime at the moment, and though I came across the "before_llm_cb", it appears to only be for v0 and no longer possible for v1. Am I right in thinking this?
f
Sorry, missed the version there. Here is the new node to process the context: on_user_turn_completed make sure to call
await self.update_chat_ctx
if you want the change to persist.
👍 1