diff --git a/litellm/llms/ollama_chat.py b/litellm/llms/ollama_chat.py index 45aab0f959..866761905f 100644 --- a/litellm/llms/ollama_chat.py +++ b/litellm/llms/ollama_chat.py @@ -395,6 +395,7 @@ async def ollama_async_streaming( custom_llm_provider="ollama_chat", logging_obj=logging_obj, ) + # If format is JSON, this was a function call # Gather all chunks and return the function call as one delta to simplify parsing if data.get("format", "") == "json":