Add Requesty as a built-in provider#215
Open
Thibaultjaigu wants to merge 1 commit into
Open
Conversation
Collaborator
|
Thanks for the PR — this is a clean integration. The provider entry, type union, and adapter all mirror the OpenRouter pattern exactly the way we'd want, and we're happy to have Requesty as a built-in provider. One small change requested before merge: please remove Once that's updated we'll merge. Thanks again for the well-crafted contribution, and welcome aboard! |
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.
Adds Requesty as a built-in provider, mirroring the existing OpenRouter entry as closely as possible.
Requesty (https://requesty.ai) is an OpenAI-compatible LLM router — base URL
https://router.requesty.ai/v1,GET /v1/modelsfor dynamic model discovery,provider/modelnaming, and optionalHTTP-Referer/X-Titleattribution headers, same as OpenRouter. It fits alongside the OpenRouter and LiteLLM entries Halo already ships.Changes:
src/shared/constants/providers.ts: newrequestyentry inBUILTIN_PROVIDERS(apiUrlhttps://router.requesty.ai/v1, modelsUrl.../v1/models, a small seed model list,icon: 'route'), placed next to OpenRouter in the global section.src/shared/types/ai-sources.ts:'requesty'added to theBuiltinProviderIdunion.src/main/openai-compat-router/server/provider-adapters.ts: arequestyAdaptermirroringopenRouterAdapter(matches onrouter.requesty.ai, injects the same optionalHTTP-Referer/X-Titleheaders), registered in the adapters list.Seed model ids used are verified live on Requesty (
openai/gpt-4o-mini,openai/gpt-4o,anthropic/claude-sonnet-4-5,google/gemini-2.5-flash,deepseek/deepseek-chat); the full list is fetched dynamically from/v1/models.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.