feat: add Requesty as a first-class OpenAI-compatible provider#242
Open
Thibaultjaigu wants to merge 1 commit into
Open
feat: add Requesty as a first-class OpenAI-compatible provider#242Thibaultjaigu wants to merge 1 commit into
Thibaultjaigu wants to merge 1 commit into
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.
What
Adds Requesty as a first-class, OpenAI-compatible LLM provider, mirroring the existing OpenRouter / Atlas Cloud wiring.
Requesty (https://requesty.ai) is an OpenAI-compatible LLM gateway. It uses the same
provider/modelnaming as OpenRouter (e.g.openai/gpt-4o-mini) and exposes an OpenAI-shaped API athttps://router.requesty.ai/v1.Changes
providers/catalog.py— registerrequestyinPROVIDER_DEFINITIONS(base URLhttps://router.requesty.ai/v1,OPENAI_CHATtransport,third_party_routerrisk label), and arequestybranch inclassify_model_capabilities.providers/requesty.py— small helper module. Requesty's/v1/modelscapability fields differ from OpenRouter: it reportscontext_window(notcontext_length) andsupports_tool_calling/supports_reasoning/supports_visionbooleans (not asupported_parametersarray), so these helpers map the real fields.providers/runtime.py— addrequestytolist_configured_provider_idsand a dispatch branch increate_chat_modelthat builds aChatOpenAICompatibleclient, mirroring the Atlas Cloud branch.providers/auth_store.py— maprequesty→REQUESTY_API_KEY.models.py— base-URL constant, provider icon, andis_requesty_available().README.md— add Requesty to the two existing provider lists (one factual mention each).tests/test_requesty_first_class_provider.py— catalog registration, env-var mapping, runtime client construction (incl. missing-key error), and capability classification using Requesty's boolean fields.Testing
pytest tests/test_requesty_first_class_provider.py tests/test_provider_catalog.py→ 51 passed (6 new + existing catalog suite, no regressions).POST https://router.requesty.ai/v1/chat/completionswithopenai/gpt-4o-mini→ HTTP 200 with a valid completion.The key is read from the OS keyring via the existing
get_provider_secretpath, exactly like the other providers; no new env-file surface is introduced.I work at Requesty. This mirrors the existing OpenRouter provider as closely as possible. Happy to adjust wording/placement or close it if it's not a fit.