Skip to content
pubscout

ollama

1.0.4, released 2 years ago by an unverified publisher

A Dart client for interacting with the Ollama API.

$ flutter pub add ollama
Source repository

What it does

A Dart client for interacting with the Ollama inference engine API. It provides an easy-to-use interface for generating text completions, chat responses, and embeddings, with support for streaming responses.

AI-written summary of version 1.0.4, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to integrate Ollama language models into your Dart or Flutter application.
  • You want to generate text completions, chat responses, or embeddings via an Ollama server.

Skip it when

  • You need on-device LLM inference that runs completely independently of an external Ollama server.

Strengths

  • Supports streaming responses
  • Supports chat responses, text completions, and embeddings
  • Allows customizable model parameters and custom base URLs

Weaknesses

  • Requires a running Ollama server instance to function
  • License is unknown

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0

not documented

final ollama = Ollama();
final stream = ollama.generate(
  'Tell me a joke about programming',
  model: 'llama3',
);

await for (final chunk in stream) {
  print(chunk.response);
}

Alternatives

Packages that do the same job and could replace ollama.

  • openai_dart

    Dart and Flutter client for OpenAI REST APIs and realtime WebSocket/WebRTC workflows.

  • ollama_dart

    Type‑safe Dart client for Ollama’s chat, generation, embeddings, audio and model management APIs.

  • anthropic_sdk_dart

    Dart client for the Anthropic API with streaming and tool support

  • llm_json_stream

    A streaming JSON parser optimized for parsing LLM responses incrementally.