Skip to content

Add Requesty as an OpenAI-compatible LLM provider - #529

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

Add Requesty as an OpenAI-compatible LLM provider#529
Thibaultjaigu wants to merge 1 commit into
Fosowl:mainfrom
Thibaultjaigu:add-requesty-provider

Conversation

@Thibaultjaigu

Copy link
Copy Markdown

Add Requesty as an OpenAI-compatible LLM provider

This adds Requesty as an LLM provider by mirroring the existing OpenRouter integration.

Requesty is an OpenAI-compatible LLM router exposing 400+ models behind a single API, using the same provider/model naming convention as OpenRouter, so it fits the existing provider dispatch cleanly.

Changes

  • sources/llm_provider.py — add requesty_fn, a mirror of openrouter_fn using OpenAI(base_url="https://router.requesty.ai/v1"); register requesty in available_providers and unsafe_providers. The API key is resolved by the existing generic {PROVIDER}_API_KEY logic (REQUESTY_API_KEY).
  • sources/memory.py — apply the same message-format handling to requesty as openrouter.
  • .env.example — add REQUESTY_API_KEY.
  • README.md — add Requesty to the provider table.

Testing

Verified live against the Requesty endpoint (same base URL + Bearer auth requesty_fn uses): a call to openai/gpt-4o-mini returned the expected completion with HTTP 200.

Config: provider_name = requesty in config.ini, is_local = False, set REQUESTY_API_KEY. Get a key at https://app.requesty.ai/api-keys, model list at https://app.requesty.ai/router/list, docs at https://docs.requesty.ai.


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.

Mirror the existing OpenRouter provider for Requesty, an OpenAI-compatible
LLM router that uses the same provider/model naming. Adds a dedicated
'requesty' provider (base URL https://router.requesty.ai/v1, REQUESTY_API_KEY),
registers it in available_providers and unsafe_providers, applies the same
message-format handling as OpenRouter in memory, and lists it in .env.example
and the README provider table.

Signed-off-by: Thibault Jaigu <thibault.jaigu@gmail.com>
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