Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix: ollama chat async stream error propagation (#8870)

Tomáš Dvořákb2eb2365b9d4
diff --git a/litellm/llms/ollama_chat.py b/litellm/llms/ollama_chat.py
index 1047012c2e8..aea1f389510 100644
--- a/litellm/llms/ollama_chat.py
+++ b/litellm/llms/ollama_chat.py
@@ -508,6 +508,7 @@ async def ollama_async_streaming(
verbose_logger.exception(
"LiteLLM.ollama(): Exception occured - {}".format(str(e))
)
+ raise e
async def ollama_acompletion(