|
assert isinstance(response.choices[0], litellm.types.utils.Choices) |
The above is the offending line. When Gemini via LiteLLM sometimes returns a response with no choices, it will throw an IndexError. I suspect that sometimes it'll just call a tool and call it a day. I'm not sure if we want to deal with this somehow. It is breaking my things :(