feat(provider): add Requesty as an OpenAI-compatible model provider

Requesty is an OpenAI-compatible LLM gateway that uses the same provider/model
naming convention as OpenRouter, so this mirrors the existing OpenRouter provider.

- internal/models/provider/requesty.go: RequestyProvider mirroring openrouter.go
  (base URL https://router.requesty.ai/v1, REQUESTY_API_KEY, RequiresAuth)
- provider.go: ProviderRequesty const + AllProviders() entry + DetectProvider case
- internal/types/model.go + client/model.go: ModelSourceRequesty
- provider_test.go: TestRequestyProviderValidation + DetectProvider case
- frontend model editor + i18n (en/zh/ko/ru) + docs/BUILTIN_MODELS.md provider list
- docs/swagger.{json,yaml} + docs.go: requesty enum value (hand-edited to match; these
  are normally swag-generated)

Verified: go build/vet/test pass; live call to https://router.requesty.ai/v1 succeeds.
Signed-off-by: Thibault Jaigu <thibault.jaigu@gmail.com>
This commit is contained in:
Thibault Jaigu
2026-07-12 09:35:33 +01:00
committed by lyingbug
parent eacc278b9a
commit 35b92f73aa
14 changed files with 126 additions and 2 deletions
+4
View File
@@ -2655,6 +2655,10 @@ export default {
label: 'OpenRouter',
description: 'openai/gpt-5.2-chat, google/gemini-3-flash-preview, etc.'
},
requesty: {
label: 'Requesty',
description: 'openai/gpt-4o-mini, anthropic/claude-sonnet-4-5, etc.'
},
generic: {
label: 'Пользовательский (OpenAI-совместимый)',
description: 'Generic API endpoint'