Skip to content

feat(ai): add Requesty memory provider preset - #544

Closed
Thibaultjaigu wants to merge 3 commits into
tickernelz:mainfrom
thibault-forks:add-requesty-provider
Closed

Thibaultjaigu wants to merge 3 commits into
tickernelz:mainfrom
thibault-forks:add-requesty-provider

Conversation

@Thibaultjaigu

Copy link
Copy Markdown
Contributor

Summary

Adds a requesty memory provider preset, registered the same way as the Morse and WorldRouter presets: an entry in src/ai/memory-provider-presets.ts on top of the shared PresetOpenAIChatProvider, with no new provider class.

Requesty is a routing layer in front of first party providers (OpenAI, Anthropic, Google and others), not a reseller.

  • memoryProvider: "requesty": endpoint defaults to https://router.requesty.ai/v1, model defaults to openai/gpt-4o-mini, and REQUESTY_API_KEY is used when memoryApiKey is omitted
  • EU users can point memoryApiUrl at https://router.eu.requesty.ai/v1
  • Docs: README and the six i18n READMEs, opencode-mem.example.jsonc, config template comments
  • Tests: key only and env resolution cases, same as the other presets

Test plan

  • Exercised the change locally: ran PresetOpenAIChatProvider("requesty", ...) executeToolCall against the live endpoint with openai/gpt-4o-mini: the request path was exercised up to router.requesty.ai, but a successful completion is not confirmed yet; I will post the result in this PR before review.
  • Noted any follow-up or known limitations: the 18 bun test failures (dist entrypoint and bundle tests, semantic recall fallback, package deps) are the same on clean main

Checklist

  • Branch is based on main
  • bun test passes (or N/A): the 152 tests in the 3 provider config files pass, full suite matches main
  • bun run typecheck passes
  • bun run check passes
  • Docs / README updated

Disclosure: I work at Requesty. Happy to adjust anything to match project conventions.

@EyJunge1

EyJunge1 commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

Thanks for this — the preset matches the Morse/WorldRouter pattern and looks good.

I rebased onto current main and cleaned a couple of duplicate config-comment lines, but I can't push to thibault-forks/opencode-mem (org fork write access). Replacement draft with that work: will link in a moment / see the new PR titled the same.

Happy to close this once the replacement is up, or you can pull those commits into this branch if you prefer.

@EyJunge1

EyJunge1 commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

Replacement draft with rebase + comment cleanup: #550

@EyJunge1

EyJunge1 commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

Superseded by #550 (maintainer couldn't push to the org fork head). Original work credited there.

@EyJunge1 EyJunge1 closed this Dec 5, 2026
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