feat: add Requesty provider#1729
Open
Thibaultjaigu wants to merge 1 commit into
Open
Conversation
Add Requesty as a dedicated provider mirroring the existing OpenRouter
provider. Requesty is an OpenAI-compatible LLM router that uses
provider/model naming.
- src/providers/requesty/{api,chatComplete,utils,index}.ts
- register 'requesty' in src/providers/index.ts
- add REQUESTY constant and VALID_PROVIDERS entry in src/globals.ts
- add Requesty entry to src/data/providers.json
Base URL https://router.requesty.ai/v1 with Authorization: Bearer auth.
Signed-off-by: Thibault Jaigu <thibault.jaigu@gmail.com>
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 dedicated provider, mirroring the existing
openrouterprovider.Requesty (https://requesty.ai, https://docs.requesty.ai) is an OpenAI-compatible LLM router. Like OpenRouter it uses
provider/modelnaming (e.g.openai/gpt-4o-mini,anthropic/claude-sonnet-4-5) and a single chat completions endpoint.Changes
src/providers/requesty/api.ts- base URLhttps://router.requesty.ai/v1(basehttps://router.requesty.ai+/v1/chat/completionsendpoint),Authorization: Bearer <apiKey>, and optionalHTTP-Referer/X-Titleanalytics headers (same header names OpenRouter uses).src/providers/requesty/chatComplete.ts- request config and response/stream transforms mirroring the OpenRouter provider, including reasoning and usage handling. OpenRouter-specific request params that Requesty does not use (transforms,provider,models) and the OpenRouter-onlyOPENROUTER PROCESSINGstream keepalive branch are omitted. Default model isopenai/gpt-4o-mini.src/providers/requesty/utils.ts-transformReasoningParams/transformUsageOptionshelpers mirroring OpenRouter.src/providers/requesty/index.ts- provider config wiring.src/providers/index.ts- registersrequestyin the provider map.src/globals.ts- adds theREQUESTYconstant and itsVALID_PROVIDERSentry.src/data/providers.json- adds the Requesty provider entry.Testing
tsc --noEmit: no new type errors introduced by these files (only the two pre-existing errors inbytezandopen-ai-baseremain).jest src/: 47 tests pass, same as on a clean checkout (the failing suites are pre-existing and caused by missing.creds.json/ an absenthooksServicemodule, unrelated to this change).prettier --checkpasses on all edited files.POST https://router.requesty.ai/v1/chat/completions, modelopenai/gpt-4o-mini) confirms the base URL, Bearer auth, andprovider/modelnaming work end to end.Reference: https://app.requesty.ai/router/list , keys at https://app.requesty.ai/api-keys
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.