Repository navigation
feat(ai): add Rapid-MLX memory provider preset - #553
Draft
raullenchai wants to merge 1 commit into
Draft
raullenchai wants to merge 1 commit into
raullenchai wants to merge 1 commit into
Conversation
This branch has not been deployed
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.
Summary
Adds a
rapid-mlxmemory provider preset for Rapid-MLX, a local OpenAI-compatible inference server for Apple Silicon Macs. It is registered like the other presets (an entry insrc/ai/memory-provider-presets.tson top ofPresetOpenAIChatProvider, no new provider class).memoryProvider: "rapid-mlx": endpoint defaults tohttp://127.0.0.1:8000/v1, model defaults todefault(Rapid-MLX maps this to the model the server has loaded;memoryModelcan name a served id or alias such asqwen3.5-4b-4bit).apiKeyOptional. Onlyrapid-mlxsets it. With no key, config resolution and the auto-capture readiness check accept the config andPresetOpenAIChatProvidersends noAuthorizationheader. If the server was started with--api-key,memoryApiKeyorRAPID_MLX_API_KEYis used. Placeholder keys are still rejected, and every other preset and registry entry still requires a key.opencode-mem.example.jsonc, config template comments, and the preset lists forforceToolChoice.Authorizationheader when key-less).Test plan
HOMEwhoseopencode-mem.jsonconly sets"memoryProvider": "rapid-mlx"(no key),CONFIGresolved tohttp://127.0.0.1:8000/v1/default,autoCaptureProviderStatuswasready, andAIProviderFactory.createProvider(...).executeToolCall(...)against a realrapid-mlx serve qwen3.5-4b-4bit --port 8000returned a forcedsave_memoriestool call with two parsed memories (about 0.8 s, 1 iteration).embeddingApiUrlpaths.Checklist
main(do not open PRs from commits already onmain)bun testpasses (1343 pass, 4 skip, 0 fail, afterbun run buildfor the dist entrypoint tests)bun run typecheckpassesbun run checkpasses🤖 Generated with Claude Code