Skip to content

ollama and memory search fixes#17

Merged
jgarzik merged 5 commits into
mainfrom
updates
Feb 9, 2026
Merged

ollama and memory search fixes#17
jgarzik merged 5 commits into
mainfrom
updates

Conversation

@jgarzik
Copy link
Copy Markdown
Owner

@jgarzik jgarzik commented Feb 9, 2026

No description provided.

jgarzik and others added 3 commits February 9, 2026 16:15
Uncomment OLLAMA_UPSTREAM env var so keyring-proxy registers the
Ollama vendor and routes bot LLM requests to the local Ollama instance.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
OpenClaw auto-discovery looks for exact "openai"/"gemini" provider names
but BotMaker creates -proxy suffixed names, so memorySearch always failed.
Now the template generator produces an explicit memorySearch section with
the correct embedding model per provider, or disables it for providers
without /embeddings support.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jgarzik jgarzik requested a review from Copilot February 9, 2026 16:45
@jgarzik jgarzik self-assigned this Feb 9, 2026
@jgarzik jgarzik changed the title Updates ollama and memory search fixes Feb 9, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds explicit memorySearch configuration generation so OpenClaw can use embeddings through the keyring-proxy (or disable memory search when embeddings aren’t supported), plus updates supporting docs and local dev defaults.

Changes:

  • Introduces EMBEDDING_MODELS mapping and getMemorySearchConfig() to generate/disable memorySearch in openclaw.json.
  • Updates template generation to include memorySearch under agent defaults and adds Vitest coverage.
  • Enables OLLAMA_UPSTREAM by default in docker-compose.yml and adds a CLAUDE.md repo guide.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
src/bots/templates.ts Adds embedding-model map + memorySearch config builder and wires it into generated OpenClaw config
src/bots/templates.test.ts Adds unit tests for getMemorySearchConfig and asserts memorySearch in generated configs
docker-compose.yml Turns on Ollama upstream env var by default
CLAUDE.md Adds repository guidance and architectural notes (including memorySearch rationale)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/bots/templates.ts
Comment thread src/bots/templates.ts Outdated
Comment thread docker-compose.yml
Comment thread src/bots/templates.ts
jgarzik and others added 2 commits February 9, 2026 16:58
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jgarzik jgarzik merged commit 11757a6 into main Feb 9, 2026
3 checks passed
@jgarzik jgarzik deleted the updates branch February 9, 2026 17:15
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.

2 participants