feat: add Requesty as an OpenAI-compatible LLM provider#73
Open
Thibaultjaigu wants to merge 1 commit into
Open
feat: add Requesty as an OpenAI-compatible LLM provider#73Thibaultjaigu 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.
Summary
Adds Requesty as a first-class LLM provider. Requesty is an OpenAI-compatible
LLM gateway, so this provider is built on the existing OpenAI-compatible model path —
the same way the
localandopenrouterproviders are constructed — rather thanintroducing a new dependency or a provider-specific model class.
Models follow the
provider/modelnaming convention (e.g.openai/gpt-4o-mini),mirroring OpenRouter. The provider resolves to litellm's OpenAI-compatible path via the
existing
{provider}/{model_name}identifier plus a base URL, so no new dependency isrequired (the OpenAI-compatible client already in the tree is reused).
Configuration
REQUESTY_API_KEY— API key sent as a Bearer tokenREQUESTY_MODEL— defaultopenai/gpt-4o-mini(usesprovider/modelnaming)REQUESTY_BASE_URL— defaulthttps://router.requesty.ai/v1Wiring sites updated
deadend_cli/deadend_agent/src/deadend_agent/config/settings.py— newrequesty_api_key,requesty_model(defaultopenai/gpt-4o-mini), andrequesty_base_url(default
https://router.requesty.ai/v1) settings fields, mirroring the OpenRouter/Localfields; provider docstring updated to document Requesty.
deadend_cli/deadend_agent/src/deadend_agent/models/registry.py— provider docstring updatedto include Requesty.
deadend_cli/src/deadend_cli/component_manager.py— addedrequestyto the providerhelp/enable lists (
openai, anthropic, gemini, openrouter, requesty, local).deadend_cli/.env.example— added commentedREQUESTY_API_KEY/REQUESTY_MODEL/REQUESTY_BASE_URLexample block.README.md— added Requesty alongside OpenRouter in the supported-providers list.cli/deadend/src/app/deadend-app.ts— addedrequestyto the setup-wizard provider example hint.Verification
ast.parsesyntax check passed on every edited Python file (settings.py, registry.py,component_manager.py).
settings.pyin isolation and confirmed the new fields resolve with the expecteddefaults:
requesty_model='openai/gpt-4o-mini',requesty_base_url='https://router.requesty.ai/v1',requesty_api_key=Nonewhen unset.https://router.requesty.ai/v1/chat/completionswithmodel
openai/gpt-4o-minireturned HTTP 200 and a valid completion (model: gpt-4o-mini-2024-07-18),confirming the base URL, auth header, and
provider/modelnaming work end-to-end.uv synctest suite in this environment: the workspace declares a gitsubmodule (
simple-python-interpreter-sandbox) that is not checked out here, souv syncfailson a missing workspace member's
pyproject.toml— unrelated to this change. The changes aredocumentation/config/string additions plus three new settings fields, with no behavioral changes
to existing providers.
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.