Skip to content

feat(ai): add LLMTR memory provider preset - #529

Merged
EyJunge1 merged 1 commit into
tickernelz:mainfrom
knowhycodata:add-llmtr-provider
Nov 29, 2026
Merged

EyJunge1 merged 1 commit into
tickernelz:mainfrom
knowhycodata:add-llmtr-provider

Conversation

@knowhycodata

Copy link
Copy Markdown
Contributor

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/model form (for example qwen/qwen3.8-flash).

  • memoryProvider: "llmtr": endpoint default https://llmtr.com/v1, model default qwen/qwen3.8-flash, LLMTR_API_KEY fallback, explicit env:// key configuration, and a distinct llmtr session tag.
  • Registered in 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.
  • Tests mirror the AIGROW ones: authentication, request serialization (tool_choice: "required"), tool response extraction, overrides, environment-key resolution, and rejection of remote-provider changes from project configuration.
  • No defaults change for existing users. Users opt in with their own key (https://llmtr.com/dashboard/keys). The docs name the destination for conversation data (https://llmtr.com). Model list: GET https://llmtr.com/v1/models.

Disclosure: I work on LLMTR.

Test plan

  • Exercised the change locally (or N/A for docs/meta-only)
    • 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 typecheck passed.
    • bun run format:check and bun run lint passed (bun run check).
    • A full bun test was also run without bun run build and reported 1269 pass, 4 skip, and 25 fail. The failures were in plugin-loader / dist/plugin.js contract tests and a few other suites this change does not touch. They are not claimed as caused or fixed here.
  • Noted any follow-up or known limitations
    • This change has not been verified against the live LLMTR API in this PR.

Checklist

  • Branch is based on main (do not open PRs from commits already on main)
  • bun test passes for the files this change touches (see Test plan; the full suite was not clean in this environment without a production build)
  • bun run typecheck passes (or N/A)
  • bun run check passes (format + lint + typecheck; or N/A)
  • Docs / README updated when behavior or contribution process changes

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
EyJunge1 merged commit 353d7e8 into tickernelz:main Nov 29, 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