Add Requesty LLM router as a pricing source#110
Merged
Conversation
Requesty (router.requesty.ai) is an OpenAI-compatible LLM gateway that publishes a handful of genuinely $0-cost models alongside its paid catalog. Add it as a provider template in providers.json (data-driven, so the setup wizard picks it up automatically) and a new scraper source that detects zero-priced models via its /v1/models pricing, following the same pattern as the existing together/fireworks sources. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BxBkHZLhDB8aqrJVaYkmht
Requesty's real /v1/models response puts input_price/output_price as top-level fields on each model, not nested under a pricing object as originally assumed. The old code always fell back to an empty pricing dict, so it never detected any free models in practice. Confirmed against a live API response: free models include the nvidia/nemotron-3 family, google/gemma-4-31b-it, and poolside/laguna variants.
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 support for Requesty, an LLM router service, as a new pricing source. This enables automatic detection of available models and their pricing from Requesty's OpenAI-compatible
/v1/modelsendpoint.Key Changes
New source implementation (
scripts/sources/requesty.py):/v1/modelsendpoint using Bearer token authenticationinput_price,output_price) at the top levelProvider configuration (
llmproxy/providers.json):Configuration templates (
config.example.json):Documentation (
README.md):Comprehensive test coverage (
tests/test_scraper/test_requesty_source.py):is_free=True)REQUESTY_API_KEY)Test fixtures (
tests/fixtures/requesty_models.json):Notable Implementation Details
REQUESTY_API_KEYenvironment variable; silently returns empty list if not setpricing=Noneto avoid expressing a pricing opinionhttps://claude.ai/code/session_01BxBkHZLhDB8aqrJVaYkmht