Skip to content

feat(lift): add Ollama provider for free local lifting#95

Merged
userFRM merged 3 commits into
mainfrom
feat/ollama-lift-provider
May 29, 2026
Merged

feat(lift): add Ollama provider for free local lifting#95
userFRM merged 3 commits into
mainfrom
feat/ollama-lift-provider

Conversation

@userFRM

@userFRM userFRM commented May 29, 2026

Copy link
Copy Markdown
Owner

Closes #94.

Summary

  • Adds OllamaProvider (crates/rpg-lift/src/provider.rs): a fully-local LlmProvider backed by an Ollama daemon via the native /api/chat endpoint.
  • Default model qwen2.5-coder:3b, zero cost, no API key. Model + base URL overridable.
  • Wired into create_provider / available_providers behind a default-on ollama feature; rpg-encoder lift --provider ollama requires no key.
  • Response parsing factored into a pure function and unit-tested without a live daemon.

Why

Lifting is the most token-expensive step in building an RPG. A free, offline, on-device backend removes that cost. The change is additive and feature-gated — no behaviour change for existing anthropic/openai users.

Test plan

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace (full suite green; 5 new provider::tests for Ollama parsing, defaults, zero-cost, keyless create)
  • Manual: rpg-encoder lift --provider ollama against a running ollama serve (requires a local daemon; not exercised in CI)

userFRM added 3 commits May 29, 2026 19:48
Adds a fully-local LlmProvider backed by an Ollama daemon (native /api/chat),
default model qwen2.5-coder:3b, zero cost, no API key. Slots into the existing
provider trait + create_provider/available_providers behind an `ollama` feature
(in the default set). CLI `lift --provider ollama` needs no key. Pure response
parser is unit tested without a live daemon.
@userFRM userFRM force-pushed the feat/ollama-lift-provider branch from 57c9b89 to df0fbbe Compare May 29, 2026 17:48
@userFRM userFRM merged commit 397d0e5 into main May 29, 2026
6 checks passed
@userFRM userFRM deleted the feat/ollama-lift-provider branch May 29, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an Ollama lift provider for free local semantic lifting

1 participant