This commit is contained in:
Timothy Jaeryang Baek
2025-02-10 13:53:16 -08:00
parent 7ebb07c04c
commit 16bae8f33a
2 changed files with 10 additions and 2 deletions

View File

@@ -1645,6 +1645,15 @@ async def process_chat_response(
content_blocks[-1]["type"] == "code_interpreter"
and retries < MAX_RETRIES
):
await event_emitter(
{
"type": "chat:completion",
"data": {
"content": serialize_content_blocks(content_blocks),
},
}
)
retries += 1
log.debug(f"Attempt count: {retries}")