Skip to main content
Pre-release

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

hyle-ollama

Ollama integration for Hyle.

Provides generation, streaming, embeddings, and model operations through Ollama's native API.

Installation

Requires Python 3.14+.

uv add hyle-ollama

This also installs hyle-core.

Quick start

import asyncio

from hyle import Request
from hyle_ollama import OllamaClient, OllamaModel


async def main() -> None:
    async with OllamaClient() as client:
        model = OllamaModel("qwen3:4b", client=client)
        response = await model.generate(Request("Why is the sky blue?"))

    print(response.require_text())


asyncio.run(main())

Ollama-specific settings are also supported:

from hyle_ollama import OllamaGenerationConfig, OllamaModel, OllamaOptions


model = OllamaModel(
    "qwen3:4b",
    client=client,
    config=OllamaGenerationConfig(
        think="low",
        options=OllamaOptions(
            num_ctx=16_384,
            temperature=0.2,
        ),
    ),
)

hyle-ollama follows Ollama's native API, rather than emulating unsupported behavior, and maps it onto Hyle's provider-independent interfaces.

Status

Hyle is a personal project built for fun. There is no fixed roadmap or timeline.

Alpha. The API may change.

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hyle_ollama-0.1.0a1.tar.gz (20.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hyle_ollama-0.1.0a1-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file hyle_ollama-0.1.0a1.tar.gz.

File metadata

  • Download URL: hyle_ollama-0.1.0a1.tar.gz
  • Upload date:
  • Size: 20.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for hyle_ollama-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 b94e089f62fbd1d86f8944ed241f5d8ed1278e1abb59f4f88304c521802ead86
MD5 1f44f65676339ea4d160cea4e6f834d1
BLAKE2b-256 1748d150220600ab1b44d633c428153e6d6aaec93c6f9238c79c7e74f3263d0f

See more details on using hashes here.

Provenance

The following attestation bundles were made for hyle_ollama-0.1.0a1.tar.gz:

Publisher: release.yml on aekn/hyle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hyle_ollama-0.1.0a1-py3-none-any.whl.

File metadata

  • Download URL: hyle_ollama-0.1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for hyle_ollama-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 69736bea1d1310422c2a3d5e4655047cfcef63fe69e0258254536acf2c7f14e4
MD5 2925a982af643425f2c2754f7935cccf
BLAKE2b-256 dfd44411ce76bb22f10fc72f23af8d4470031bef5039be48a3bcbb1c85edfd71

See more details on using hashes here.

Provenance

The following attestation bundles were made for hyle_ollama-0.1.0a1-py3-none-any.whl:

Publisher: release.yml on aekn/hyle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0a1 This release

2 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