Repository navigation
feat(ollama): wire local ollama models for keep npc dialogue and ambient events - #62
jasandroidx wants to merge 1 commit into
Conversation
…ent events - Add mcp/src/ollama_service.py with configurable endpoint (OLLAMA_BASE_URL), model (OLLAMA_MODEL), NPC persona system prompts, and live Keep state context. - Expose POST /api/dialogue and GET /api/ambient-event endpoints in mcp/src/http_api.py. - Add frontend client helpers in ui-v2/src/lib/keep/ollama.ts. - Update ui-v2 barks.ts, herald.ts, and keep-hall.tsx to dynamically call Ollama with graceful fallback to static barks/herald lines if offline. - Add unit tests for backend service (mcp/test_ollama.py) and frontend client (ui-v2/src/lib/keep/ollama.test.ts). Co-authored-by: jasandroidx <77057656+jasandroidx@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
The #62 import swap made pickBarkAsync the only import; the near-NPC Talk button still called bare pickBark. Route it through pickBarkAsync with the rule-pool fallback so the name is gone everywhere.
feat(keep): local Ollama NPC dialogue + neutral ambient events (curated #62)
|
Landed curated as PR #67 (chore/land-ollama-dialogue). Kept: ollama_service.py + /api/dialogue + /api/ambient-event backend verbatim; frontend as createServerFn server fns with KEEP_HTTP_URL loopback base (no browser URL, no CORS); ambient lines tagged 'weather' (NEVER torchlight — must not pulse the hall lights); pickBarkAsync/pickHeraldLineAsync fall back to rule pools when Ollama/API unreachable; test_ollama converted to TestCase style so unittest collects it (13/13). Rejected: hardcoded :8120 fetch base, browser-local ollama client, torchlight-tagged dynamic lines, bun test syntax, @google/genai, /gallery regression, 'as any' casts. No new typecheck errors vs base; build:box green. |
Acknowledged. Thank you for landing and refining the integration! |
Wired up local Ollama models on the VM for dynamic NPC dialogue and ambient events in Ravenstack Keep. Includes configurable backend service, HTTP endpoints, frontend integration with fallbacks, and unit test coverage.
PR created automatically by Jules for task 10382431164168991868 started by @jasandroidx