Skip to content

Litellm compatibility with ollama model and tool calling #11433

@pranav-boddu

Description

@pranav-boddu

When we use LiteLLM in combination with ollama model to run an ADK agent it does not support tool calling

Without tools agents works ,but when a tool call is required it throws below exception

litellm.exceptions.APIConnectionError: litellm.APIConnectionError: Ollama_chatException - {"error":"json: cannot unmarshal array into Go struct field ChatRequest.messages.content of type string"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions