Repository navigation
refactor(ollama): remove orphan embedding hook - #130765
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 27, 2026 06:46
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Ollama still implemented the optional
ProviderPlugin.createEmbeddingProviderhook after the production provider runtime stopped consuming that hook. Its lazy runtime loader and a large lazy-import test branch therefore described a path that current OpenClaw could not call.The dormant wrapper duplicated the active memory embedding adapter's query/document projection and made the plugin entrypoint appear to own two embedding creation paths.
Why This Change Was Made
This removes only Ollama's orphan hook implementation, its now-dead lazy loader, and the obsolete mock/assertion branch that exercised it.
The public optional
ProviderPlugintype remains available. Ollama's actual memory embedding adapter, embedding runtime, query/document behavior, output dimensionality handling, Gateway embedding transport, and plugin SDK helpers are unchanged.The hook and wrapper existed in the
v2026.7.1lineage; the wrapper was removed from the current architecture. This cleanup does not claim the historical hook was never functional.User Impact
No user-visible behavior change is intended. Ollama embeddings continue through the canonical registered memory embedding adapter and existing transport path. The change removes a misleading internal layer rather than a working public capability.
Evidence
.createEmbeddingProviderconsumer; only the optional public type, Ollama implementation, and its test branch remained.CHANGELOG.mdis release-owned; this behavior-preserving internal cleanup needs no release entry.