Closed joouha closed 9 months ago
Some OpenAI "compatible" APIs (e.g. https://lepton.ai) return a chunk with an empty list of choices at the end of their responses.
Currently this causes an error with shell-gpt as this case is not handled, which this PR fixes.
Hi @joouha, This issue should be solved in the latest release by LiteLLM. Given that, I'll pass on this, but thanks for the effort! 🍰
Some OpenAI "compatible" APIs (e.g. https://lepton.ai) return a chunk with an empty list of choices at the end of their responses.
Currently this causes an error with shell-gpt as this case is not handled, which this PR fixes.