Repository navigation
feat(ai): add WorldRouter memory provider preset - #539
Conversation
lindixu6-hash
left a comment
There was a problem hiding this comment.
Thanks for putting this together. The preset follows the same pattern as the existing provider presets, and the live endpoint testing is appreciated (7/8 passing, with the Claude + forced tool_choice 400 understood as expected behaviour for that endpoint). Full test suite results look good too. Leaving this for a maintainer decision on adding the new provider, but from a code and testing standpoint this looks solid.
Register WorldRouter as a v3 OpenAI-chat preset (endpoint/model/env key) instead of a per-vendor provider class.
0d3210b to
244c659
Compare
|
Rewrote this for the current On v3, OpenAI-compatible presets are a registry entry in |
Keep both registry presets after Morse landed on v3.
Summary
Adds an optional WorldRouter memory provider preset.
Maintainer rewrite (v3): The original PR targeted
mainwith a per-filesrc/services/ai/providers/worldrouter.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: "worldrouter": endpoint defaulthttps://inference-api.worldrouter.ai/v1, model defaultdeepseek-v4-flash,WORLDROUTER_API_KEYfallback"forceToolChoice": falseon this gatewayopencode-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