Add Requesty as a provider - #140
Open
Thibaultjaigu wants to merge 1 commit into
Open
Conversation
Owner
|
thanks for your PR, can you update and set merge target into dev instead? |
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 provider, mirroring the existing OpenRouter provider end-to-end.
Requesty (https://requesty.ai) is an OpenAI-compatible LLM router — base URL
https://router.requesty.ai/v1,provider/modelnaming,Authorization: Bearerauth, optionalHTTP-Referer/X-Titleheaders.Changes:
src/BE/db/Enums/DBModelProvider.cs:Requesty = 23(new unique value, appended).src/BE/web/DB/ModelProviderInfo.cs: aRequestyprovider-info entry (https://router.requesty.ai/v1,rqsty-sk-***), mirroring OpenRouter's.src/BE/web/Services/Models/ChatServices/OpenAI/RequestyChatService.cs(new): extendsChatCompletionService, adds theX-Title/HTTP-Refererattribution headers (Requesty supports them) — without OpenRouter's provider-routing body fields, since Requesty is plain OpenAI-compatible.src/BE/web/Services/Models/ChatServices/ChatFactory.cs:DBModelProvider.Requesty => RequestyChatService.src/BE/web/Program.cs: DI registration mirroring OpenRouter.src/FE/types/model.ts:Requesty = 23in the FE enum + afeModelProvidersentry.doc/en-US/model-providers.md+doc/zh-CN/model-providers.md: Requesty row.Icon:
src/FE/public/logos/requesty.svgis a neutral placeholder glyph (a generic router icon, not the official Requesty logo) — happy to swap for the real mark.Note: I couldn't run
dotnet buildlocally (no .NET toolchain on this machine), so please give it a build. Every OpenRouter reference was mirrored 1:1. A DB migration inserting provider id 23 (parallel to the OpenRouter migration) may be desired if you seed providers via SQL — happy to add it.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.