Repository navigation
feat(ai): add Morse memory provider preset - #534
Conversation
lindixu6-hash
left a comment
There was a problem hiding this comment.
Thanks for the contribution and for disclosing the team affiliation. The preset follows the established pattern, but before this can be considered for merge, could you please: (1) run the full test suite plus typecheck and lint locally (bun test / bun run typecheck / bun run lint) and post the results, and (2) verify the preset against the live endpoint if at all possible, since the current tests are mocks only. Provider inclusion itself is a maintainer decision, which we'll pick up once the verification side is covered.
|
Thanks for the review. Live check first, since that was the open question: I sent the request the plugin builds (one tool,
Next I'm running |
|
Results on 57c9f2e (bun 1.4.5;
The one failure is the same test on both: Live check through the PR's own code:
|
Register Morse as a v3 OpenAI-chat preset (endpoint/model/env key) instead of a per-vendor provider class.
57c9f2e to
bb981e0
Compare
|
Rewrote this for the current On v3, OpenAI-compatible presets are a registry entry in |
Summary
Adds an optional Morse inference API memory provider preset.
Maintainer rewrite (v3): The original PR targeted
mainwith a per-filesrc/services/ai/providers/morse.tsprovider (2.x pattern). Onv3, OpenAI-compatible gateways are registry entries insrc/ai/memory-provider-presets.tsplus the sharedPresetOpenAIChatProvider— no vendor class, factory case, or session-type union change. This branch was rewritten accordingly and retargeted tov3.memoryProvider: "morse": endpoint defaulthttps://inference.trymorse.ai/v1, model defaultdeepseek/deepseek-v4.1-flash,MORSE_API_KEYfallbackopencode-mem.example.jsonc, config template commentsTest plan
bun test tests/ai/ai-provider-config.test.ts tests/shared/config-resolution.test.ts tests/ai/preset-openai-chat-provider.test.tstsc+ eslint + prettier) on commitChecklist
v3