Skip to content

Ollama: embedding_only option has been removed from the Ollama API #503

@ThomasVitale

Description

@ThomasVitale

Bug description
The embedding_only option is not part of the Ollama API anymore. It's been removed since it wasn't actually used: ollama/ollama#2848. When this option is included in a request to Ollama, an error is thrown. Current API spec: https://github.com/ollama/ollama/blob/main/api/types.go#L87.

Environment
Spring AI Snapshot
Ollama 0.1.29

Expected behavior
The embedding_only option should not be part of https://github.com/spring-projects/spring-ai/blob/main/models/spring-ai-ollama/src/main/java/org/springframework/ai/ollama/api/OllamaOptions.java

PR: #504

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