Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index out of range error #176

Closed
areibman opened this issue May 2, 2024 · 0 comments · Fixed by #178
Closed

Index out of range error #176

areibman opened this issue May 2, 2024 · 0 comments · Fixed by #178
Labels
bug Something isn't working

Comments

@areibman
Copy link
Contributor

areibman commented May 2, 2024

🐛 Bug Report

🔎 Describe the Bug

Seeing this error frequently. Appears to be happening a lot with CrewAI streaming.

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/agentops/llm_tracker.py", line 127, in handle_stream_chunk
    token = choices[0].delta.content
            ~~~~~~~^^^
IndexError: list index out of range

🔄 Reproduction Steps
Run a non-standard model with CrewAI

🙁 Expected Behavior

  • No error or crash.
  • Error events get more details about what went wrong
@areibman areibman added the bug Something isn't working label May 2, 2024
@HowieG HowieG linked a pull request May 2, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant