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: wrong order of arguments for ollama

thiswillbeyourgithub3eb076edf525
diff --git a/litellm/llms/ollama.py b/litellm/llms/ollama.py
index 6b984e1d826..f699cf0f5f5 100644
--- a/litellm/llms/ollama.py
+++ b/litellm/llms/ollama.py
@@ -601,12 +601,13 @@ def ollama_embeddings(
):
return asyncio.run(
ollama_aembeddings(
- api_base,
- model,
- prompts,
- optional_params,
- logging_obj,
- model_response,
- encoding,
+ api_base=api_base,
+ model=model,
+ prompts=prompts,
+ model_response=model_response,
+ optional_params=optional_params,
+ logging_obj=logging_obj,
+ encoding=encoding,
)
+
)