feat: add Requesty provider#20
Merged
Merged
Conversation
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 Requesty as an OpenAI-compatible LLM provider, implemented as a new
RequestyProvider(BaseProvider)that mirrors the existingOpenRouterProvideras closely as possible.Requesty is an OpenAI-compatible LLM gateway:
https://router.requesty.ai/v1Authorization: Bearer $REQUESTY_API_KEYprovider/model(same convention as OpenRouter, e.g.openai/gpt-4o-mini)Implementation
ai/providers/requesty_provider.pycopies the OpenRouter provider's structure:ai_config.get("requesty", {})REQUESTY_API_KEYenv varChatOpenAI(openai_api_base="https://router.requesty.ai/v1", ...)openai/gpt-4o-minigenerate_with_usagesets the response dict"provider"field to"requesty"Wiring sites updated
ai/providers/__init__.py— registered"requesty"in the in-treePROVIDERSregistryconfig/guardian.yaml— added arequesty:config block, updated the active-provider comment, and added a pricing entrycli/commands/scan.py,workflow.py,recon.py— addedrequestyto eachvalid_providerslist and the--providerhelp textcli/commands/models.py— added a "REQUESTY MODELS" table section and the env-var hinttests/test_provider_plugins.py— addedrequestyto the in-tree provider assertion tupleREADME.md— added Requesty to provider lists/counts, config snippet, env-var examples, architecture/structure diagrams, and an API-key linkVerification
https://router.requesty.ai/v1/chat/completionswith modelopenai/gpt-4o-mini— received a successful200completion.python -m pytest tests/test_provider_plugins.py— all 7 tests pass.Links
I work at Requesty. This mirrors the existing OpenRouter provider as closely as possible. Happy to adjust or close it if it's not a fit.