Add Requesty as a provider - #347
Open
Thibaultjaigu wants to merge 1 commit into
Open
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.
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. It reuses the same OpenAI-compatible chat-client path OpenRouter uses.Changes:
Models/Providers/Provider.cs:Requestyenum member.Models/Providers/Requesty/RequestyConfiguration.cs(new):IProviderConfigurationmirroringOpenRouterConfiguration(BaseAddress = https://router.requesty.ai/v1,DefaultModel = openai/gpt-4o-mini).Models/ServiceCollectionExtensions.cs:AddRequestyChatClient()via the OpenAI-compatible client (mirrors OpenRouter).Users/Entitlement.cs+Users/Models/Entitlements.cs:EnableRequestyProvider.AddIn/CellmAddIn.cs,AddIn/UserInterface/Ribbon/RibbonModelGroup.cs: config binding, HTTP client, provider list, ribbon base-address case.appsettings.json:RequestyConfigurationsection (verified model ids).Cellm.csproj: embedsRequesty.svg.AddIn/UserInterface/Resources/Requesty.svg(new): placeholder icon (neutral glyph, not a Requesty logo) — happy to swap for the official mark.Note: I couldn't run
dotnet buildlocally (net9.0-windows / WinForms target on a non-Windows machine), so this hasn't been compiled here — please give it a build. Every reference was mirrored 1:1 against OpenRouter.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.