Open dahifi opened 6 months ago
2024-05-14 10:45:35 - The server had an error processing your request. Sorry about that! You can retry your request, or contact us through our help center at help.openai.com if you keep seeing this error. (Please include the request ID req_92c315927da6ffa60964eb07f1f29f4f in your email.)
Traceback (most recent call last):
File "/Users/bcm/Library/Caches/pypoetry/virtualenvs/chainlit-template-HgVdPv8X-py3.11/lib/python3.11/site-packages/chainlit/utils.py", line 40, in wrapper
return await user_function(**params_values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/bcm/projects/chainlit-template/openai-assistant/test/chainlit_tests/streaming.py", line 41, in on_chat_start
await stream.until_done()
File "/Users/bcm/Library/Caches/pypoetry/virtualenvs/chainlit-template-HgVdPv8X-py3.11/lib/python3.11/site-packages/openai/lib/streaming/_assistants.py", line 533, in until_done
await consume_async_iterator(self)
File "/Users/bcm/Library/Caches/pypoetry/virtualenvs/chainlit-template-HgVdPv8X-py3.11/lib/python3.11/site-packages/openai/_utils/_streams.py", line 11, in consume_async_iterator
async for _ in iterator:
File "/Users/bcm/Library/Caches/pypoetry/virtualenvs/chainlit-template-HgVdPv8X-py3.11/lib/python3.11/site-packages/openai/lib/streaming/_assistants.py", line 500, in __aiter__
async for item in self._iterator:
File "/Users/bcm/Library/Caches/pypoetry/virtualenvs/chainlit-template-HgVdPv8X-py3.11/lib/python3.11/site-packages/openai/lib/streaming/_assistants.py", line 835, in __stream__
async for event in stream:
File "/Users/bcm/Library/Caches/pypoetry/virtualenvs/chainlit-template-HgVdPv8X-py3.11/lib/python3.11/site-packages/openai/_streaming.py", line 147, in __aiter__
async for item in self._iterator:
File "/Users/bcm/Library/Caches/pypoetry/virtualenvs/chainlit-template-HgVdPv8X-py3.11/lib/python3.11/site-packages/openai/_streaming.py", line 193, in __stream__
raise APIError(
openai.APIError: The server had an error processing your request. Sorry about that! You can retry your request, or contact us through our help center at help.openai.com if you keep seeing this error. (Please include the request ID req_92c315927da6ffa60964eb07f1f29f4f in your email.)
2024-05-14 10:45:35 - on_tool_call_created
assistant > file_search
2024-05-14 10:45:35 - HTTP Request: POST https://api.openai.com/v1/threads "HTTP/1.1 200 OK"
2024-05-14 10:45:35 - HTTP Request: POST https://api.openai.com/v1/threads "HTTP/1.1 200 OK"
2024-05-14 10:45:35 - HTTP Request: POST https://api.openai.com/v1/threads "HTTP/1.1 200 OK"
2024-05-14 10:45:35 - HTTP Request: POST https://api.openai.com/v1/threads/thread_jQeq9sk0BVUF3q3cyAKje1X9/messages "HTTP/1.1 200 OK"
We are seeing strange behavior in our streaming event handler. The handler is returning an openai.APIError, which renders to the UX, but then I saw everything logging underneath. It is as if the call failed and then immediately retried.