Skip to content

feat: add Requesty as an OpenAI-compatible provider#82

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

feat: add Requesty as an OpenAI-compatible provider#82
Thibaultjaigu wants to merge 1 commit into
anvie:mainfrom
Thibaultjaigu:add-requesty-provider

Conversation

@Thibaultjaigu

Copy link
Copy Markdown

What

Adds Requesty (https://requesty.ai) as a named OpenAI-compatible LLM provider, mirroring the existing OpenRouter wiring 1:1. Requesty is an OpenAI-compatible gateway with the same provider/model naming convention already used for OpenRouter.

  • Base URL: https://router.requesty.ai/v1 (/v1/chat/completions, /v1/models)
  • Auth: Authorization: Bearer <key>
  • Model naming: provider/model (e.g. openai/gpt-4o-mini) — same as OpenRouter

Changes

  • routes/models.py: add "requesty" to the valid_providers tuple in the model-create route.
  • backend/setup.py: add a requesty entry to PROVIDER_DEFAULTS (default base URL https://router.requesty.ai/v1, API key required). This data row feeds both the web setup wizard provider picker (templates/setup.html iterates providers.items()) and the CLI setup wizard, so no separate picker edits are needed there.
  • templates/settings.html: add a <option value="requesty">Requesty</option> to the model provider <select>, matching the other static options.

No new dependencies; the existing OpenAI-compatible request/model-discovery path is reused unchanged.

Tested live

Against https://router.requesty.ai/v1 with a real key:

  • POST /v1/chat/completions (model openai/gpt-4o-mini, max_tokens=32) → HTTP 200, valid chat.completion response.
  • GET /v1/models (the path the app uses for model discovery via {base_url}/models) → HTTP 200, OpenAI-shaped {"data":[...]} list (572 models).

I work at Requesty. This mirrors the existing OpenRouter provider as closely as possible. Happy to adjust wording/placement or close it if it's not a fit.

Mirror the existing OpenRouter wiring for Requesty
(https://router.requesty.ai/v1), an OpenAI-compatible LLM gateway:

- routes/models.py: add "requesty" to valid_providers
- backend/setup.py: add Requesty to PROVIDER_DEFAULTS (feeds the
  setup wizard provider picker and CLI setup)
- templates/settings.html: add Requesty option to the model provider select
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.

1 participant