Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

elizaOS Plugin Ollama (Python)

Ollama plugin for elizaOS - Local LLM client for text and object generation.

Installation

pip install elizaos-plugin-ollama

Usage

from elizaos_plugin_ollama import OllamaClient, OllamaConfig

# Create a client with default configuration
config = OllamaConfig.from_env()
client = OllamaClient(config)

# Generate text
response = await client.generate_text_large("What is the meaning of life?")
print(response.text)

# Generate embeddings
embedding = await client.generate_embedding("Hello, world!")
print(f"Embedding dimension: {len(embedding.embedding)}")

Configuration

The client can be configured via environment variables:

Variable Description Default
OLLAMA_API_ENDPOINT Base URL for the Ollama API http://localhost:11434
OLLAMA_SMALL_MODEL Model for small text generation gemma3:latest
OLLAMA_LARGE_MODEL Model for large text generation gemma3:latest
OLLAMA_EMBEDDING_MODEL Model for embeddings nomic-embed-text:latest
OLLAMA_TIMEOUT_SECONDS Request timeout 300

Features

  • Text Generation: Generate text using small or large models
  • Object Generation: Generate structured JSON objects
  • Text Embeddings: Generate embeddings for semantic search
  • Model Management: Automatic model downloading if not available locally

Requirements

License

MIT

Metadata

Release files for elizaos-plugin-ollama 2.0.0a5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for elizaos-plugin-ollama 2.0.0a5
File Size Uploaded
elizaos_plugin_ollama-2.0.0a5.tar.gz 7.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for elizaos-plugin-ollama 2.0.0a5
File Interpreter ABI Platform
elizaos_plugin_ollama-2.0.0a5-py3-none-any.whl Python 3 none any Details

Total release size: 16.6 kB

Release files / elizaos_plugin_ollama-2.0.0a5.tar.gz

Download URL elizaos_plugin_ollama-2.0.0a5.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5f62931015ee9c2dfc5a8186975b86adbc25953d448cc6506de2255e2cb3ddf6
BLAKE2b-256 checksum
How to use checksums
c1fcf7e25b10b7585260f75df5eadcdb700f60ddc8c4ce9c2cf7bceea92addc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / elizaos_plugin_ollama-2.0.0a5-py3-none-any.whl

Download URL elizaos_plugin_ollama-2.0.0a5-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c0a20646a6ea4353fbe12721c411170315e90d70f38e6519163f538af630e36
BLAKE2b-256 checksum
How to use checksums
0706e02caa8ec71a8e220877d37e6f74d5e671f9183f46835f17d9e121214b4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

2.0.0a5 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page