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:
@@ -550,6 +550,16 @@ const fallbackProviderOptions = computed(() => [
|
||||
description: t('model.editor.providers.openrouter.description'),
|
||||
modelTypes: ['chat', 'embedding']
|
||||
},
|
||||
{
|
||||
value: 'requesty',
|
||||
label: t('model.editor.providers.requesty.label'),
|
||||
defaultUrls: {
|
||||
chat: 'https://router.requesty.ai/v1',
|
||||
embedding: 'https://router.requesty.ai/v1'
|
||||
},
|
||||
description: t('model.editor.providers.requesty.description'),
|
||||
modelTypes: ['chat', 'embedding']
|
||||
},
|
||||
{
|
||||
value: 'gemini',
|
||||
label: t('model.editor.providers.gemini.label'),
|
||||
|
||||
@@ -3990,6 +3990,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: 'Custom (OpenAI-compatible)',
|
||||
description: 'Generic API endpoint',
|
||||
|
||||
@@ -2960,6 +2960,10 @@ export default {
|
||||
label: "OpenRouter",
|
||||
description: "openai/gpt-5.2-chat, google/gemini-3-flash-preview 등",
|
||||
},
|
||||
requesty: {
|
||||
label: "Requesty",
|
||||
description: "openai/gpt-4o-mini, anthropic/claude-sonnet-4-5 등",
|
||||
},
|
||||
generic: {
|
||||
label: "사용자 정의 (OpenAI 호환)",
|
||||
description: "Generic API endpoint",
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -2985,6 +2985,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 (OpenAI-compatible)",
|
||||
|
||||
Reference in New Issue
Block a user