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
Able to parse response from model and process next steps.
Actual Behavior
Errors out with:
Traceback (most recent call last):
File "/hidden/proto-strands/agent.py", line 56, in <module>
naming_agent("my new task")
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/hidden/proto-strands/.venv/lib/python3.13/site-packages/strands/agent/agent.py", line 335, in __call__
result = self._run_loop(prompt, kwargs)
File "/hidden/proto-strands/.venv/lib/python3.13/site-packages/strands/agent/agent.py", line 439, in _run_loop
return self._execute_event_loop_cycle(invocation_callback_handler, kwargs)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/hidden/proto-strands/.venv/lib/python3.13/site-packages/strands/agent/agent.py", line 467, in _execute_event_loop_cycle
stop_reason, message, metrics, state = event_loop_cycle(
~~~~~~~~~~~~~~~~^
model=model,
^^^^^^^^^^^^
...<9 lines>...
**kwargs,
^^^^^^^^^
)
^
File "/hidden/proto-strands/.venv/lib/python3.13/site-packages/strands/event_loop/event_loop.py", line 190, in event_loop_cycle
raise e
File "/hidden/proto-strands/.venv/lib/python3.13/site-packages/strands/event_loop/event_loop.py", line 148, in event_loop_cycle
stop_reason, message, usage, metrics, kwargs["request_state"] = stream_messages(
~~~~~~~~~~~~~~~^
model,
^^^^^^
...<4 lines>...
**kwargs,
^^^^^^^^^
)
^
File "/hidden/proto-strands/.venv/lib/python3.13/site-packages/strands/event_loop/streaming.py", line 340, in stream_messages
return process_stream(chunks, callback_handler, messages, **kwargs)
File "/hidden/proto-strands/.venv/lib/python3.13/site-packages/strands/event_loop/streaming.py", line 290, in process_stream
for chunk in chunks:
^^^^^^
File "/hidden/proto-strands/.venv/lib/python3.13/site-packages/strands/types/models/model.py", line 115, in converse
for event in response:
^^^^^^^^
File "/hidden/proto-strands/.venv/lib/python3.13/site-packages/strands/models/openai.py", line 100, in stream
choice = event.choices[0]
~~~~~~~~~~~~~^^^
IndexError: list index out of range
Additional Context
No response
Possible Solution
No response
Related Issues
No response
The text was updated successfully, but these errors were encountered:
hi @mrityunjayshukla thank you for submitting this issue and your contribution to Strands! i see your PR for skipping empty chunks has been merged - which is great! we have seen other issues where endpoints which are seemingly OpenAI compatible, but do not actually support the full OpenAI API spec (ref).
are there any further issues you have found that we can support with? otherwise, i'll go ahead and resolve this issue.
Uh oh!
There was an error while loading. Please reload this page.
Checks
Strands Version
0.1.5
Python Version
3.13.3
Operating System
macOS 15.4.1
Installation Method
other
Steps to Reproduce
Expected Behavior
Able to parse response from model and process next steps.
Actual Behavior
Errors out with:
Additional Context
No response
Possible Solution
No response
Related Issues
No response
The text was updated successfully, but these errors were encountered: