Skip to content

Add Requesty as a provider - #140

Open
Thibaultjaigu wants to merge 1 commit into
sdcb:mainfrom
Thibaultjaigu:add-requesty-provider
Open

Add Requesty as a provider#140
Thibaultjaigu wants to merge 1 commit into
sdcb:mainfrom
Thibaultjaigu:add-requesty-provider

Conversation

@Thibaultjaigu

Copy link
Copy Markdown

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/model naming, Authorization: Bearer auth, optional HTTP-Referer/X-Title headers.

Changes:

  • src/BE/db/Enums/DBModelProvider.cs: Requesty = 23 (new unique value, appended).
  • src/BE/web/DB/ModelProviderInfo.cs: a Requesty provider-info entry (https://router.requesty.ai/v1, rqsty-sk-***), mirroring OpenRouter's.
  • src/BE/web/Services/Models/ChatServices/OpenAI/RequestyChatService.cs (new): extends ChatCompletionService, adds the X-Title/HTTP-Referer attribution 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 = 23 in the FE enum + a feModelProviders entry.
  • doc/en-US/model-providers.md + doc/zh-CN/model-providers.md: Requesty row.

Icon: src/FE/public/logos/requesty.svg is 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 build locally (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.

@sdcb

sdcb commented Jul 30, 2026

Copy link
Copy Markdown
Owner

thanks for your PR, can you update and set merge target into dev instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants