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
- Python 3.11+
- Running Ollama server (https://ollama.ai)
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| elizaos_plugin_ollama-2.0.0a5.tar.gz | 7.5 kB | Without provenance | Details for elizaos_plugin_ollama-2.0.0a5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| elizaos_plugin_ollama-2.0.0a5-py3-none-any.whl | Python 3 | none | any | Details for elizaos_plugin_ollama-2.0.0a5-py3-none-any.whl |
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
|
Security for elizaos-plugin-ollama 2.0.0a5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.