Repository navigation
feat(brain): add llmtr as an optional OpenAI-compatible provider - #182
knowhycodata wants to merge 1 commit into
Conversation
Wire llmtr (https://llmtr.com/v1) into the multi-provider brain the same way as the existing fluxion/requesty gateways: OpenAI-compatible base URL authenticated with LLMTR_API_KEY, default model minimax/minimax-m3.1-flash-free, and a curated free-tier model list (full catalog via GET /v1/models). Touch points mirror the other providers: PROVIDER_PRIORITY, DEFAULT_MODELS, PROVIDER_KEY_ENV, the _init_provider branch, the chat() OpenAI-compat set, and list_models() in brain.py; the setup-wizard menu, env maps, provider status/tier table, argparse choices and saved-key loader in engine.py; a config.example.json entry; a factual row in the README provider table; and auto-detect/init tests mirroring the fluxion/requesty cases.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Hi @shuvonsec, thanks for going through the backlog. I noticed #181 was closed as completed, but this PR is still open and the provider isn't on
Thanks! |
Adds
llmtr(https://llmtr.com/v1) as an optional provider for the standalonebughunter/brain.pybackend, wired exactly like the existingfluxion/requestygateways.Closes #181.
What this does
https://llmtr.com/v1, authenticated withLLMTR_API_KEY(standardAuthorization: Bearer), routed through the existing_chat_openai_compatpath — no new transport code.minimax/minimax-m3.1-flash-free; curated free-tier starter list (full catalog viaGET https://llmtr.com/v1/models).PROVIDER_PRIORITY(only reached whenLLMTR_API_KEYis set, so it never preempts an already-configured provider),DEFAULT_MODELS,PROVIDER_KEY_ENV,_init_provider, thechat()compat set andlist_models()inbrain.py; plus the setup-wizard menu, env/status/tier maps, argparse choices and saved-key loader inengine.py.config.example.json, the README "Free AI Providers" table, andCHANGELOG.md.fluxion/requestycases (test_llmtr_key_jumps_to_front,test_llmtr_init_sets_api_base).Notes
Testing
pytest tests/test_brain_auto_detect.py— new + existing cases.chat()routing) and confirmed the free model IDs against the livehttps://llmtr.com/v1/modelscatalog.