You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create an assistant without a file attached in the UI
Chat with the assistant
Expected result
Chat message is returned from the run
Actual Result
The run fails as the API router's request builder expects a file_ids to not be empty
Visual Proof (screenshots, videos, text, etc)
Traceback (most recent call last):
File "/leapfrogai/.venv/lib/python3.11/site-packages/starlette/responses.py", line 257, in wrap
await func()
File "/leapfrogai/.venv/lib/python3.11/site-packages/starlette/responses.py", line 246, in stream_response
async forchunkin self.body_iterator:
File "/leapfrogai/.venv/lib/python3.11/site-packages/leapfrogai_api/routers/openai/requests/run_create_params_request_base.py", line 380, in stream_generate_message_for_thread
chat_messages, file_ids = await self.create_chat_messages(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/leapfrogai/.venv/lib/python3.11/site-packages/leapfrogai_api/routers/openai/requests/run_create_params_request_base.py", line 286, in create_chat_messages
return chat_messages, list(file_ids)
^^^^^^^^
UnboundLocalError: cannot access local variable 'file_ids' where it is not associated with a value
Additional Context
N/A
The text was updated successfully, but these errors were encountered:
Environment
Steps to reproduce
Expected result
Actual Result
file_ids
to not be emptyVisual Proof (screenshots, videos, text, etc)
Additional Context
N/A
The text was updated successfully, but these errors were encountered: