Repository navigation
feat(ai): add LLMTR memory provider preset - #529
Merged
Merged
Conversation
Add an optional llmtr preset on the existing OpenAI Chat Completions transport, with endpoint and model defaults, LLMTR_API_KEY fallback, factory wiring, docs in all README languages, and tests matching the other gateway presets.
EyJunge1
force-pushed
the
add-llmtr-provider
branch
from
November 29, 2026 16:55
9b534a3 to
ba29f77
Compare
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 an optional LLMTR memory provider preset on the existing OpenAI Chat Completions transport, following the merged AIGROW preset in #516 (and UberLLM in #505). LLMTR is a prepaid OpenAI-compatible API; model ids use the
vendor/modelform (for exampleqwen/qwen3.8-flash).memoryProvider: "llmtr": endpoint defaulthttps://llmtr.com/v1, model defaultqwen/qwen3.8-flash,LLMTR_API_KEYfallback, explicitenv://key configuration, and a distinctllmtrsession tag.memory-provider-presets.ts, so key-only configs resolve model and endpoint and readiness works the same as the other presets. Factory, types, config template, example config and all README languages updated.tool_choice: "required"), tool response extraction, overrides, environment-key resolution, and rejection of remote-provider changes from project configuration.https://llmtr.com). Model list:GET https://llmtr.com/v1/models.Disclosure: I work on LLMTR.
Test plan
bun test tests/llmtr-provider.test.ts tests/ai-provider-config.test.ts tests/config-resolution.test.ts: 78 passed, 0 failed (mocked HTTP only).bun run typecheckpassed.bun run format:checkandbun run lintpassed (bun run check).bun testwas also run withoutbun run buildand reported 1269 pass, 4 skip, and 25 fail. The failures were in plugin-loader /dist/plugin.jscontract tests and a few other suites this change does not touch. They are not claimed as caused or fixed here.Checklist
main(do not open PRs from commits already onmain)bun testpasses for the files this change touches (see Test plan; the full suite was not clean in this environment without a production build)bun run typecheckpasses (or N/A)bun run checkpasses (format + lint + typecheck; or N/A)