Skip to content

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

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

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

Conversation

@Thibaultjaigu

Copy link
Copy Markdown

What

Adds Requesty as a named, OpenAI-compatible LLM provider in the AutoFigure SDK, mirroring the existing OpenRouter wiring 1:1.

  • autofigure/config.py: add a "requesty" branch to _get_default_base_url (https://router.requesty.ai/v1), _get_default_model (openai/gpt-4o-mini), and _get_default_enhancement_model; update the provider comments and from_env docstring.
  • autofigure/utils/llm_client.py: list Requesty among the supported OpenAI-compatible providers. No special-casing is required — Requesty uses the exact same openai SDK path as OpenRouter.
  • autofigure/README.md: add Requesty to the provider feature list and the generation_provider options, plus one factual line on the default base URL.

Why

Requesty is an OpenAI-compatible LLM gateway. Model naming (provider/model) and the Authorization: Bearer auth header are identical to OpenRouter, so it slots into the existing provider abstraction with no behavioral changes for other providers.

Tested against the live endpoint

A POST to https://router.requesty.ai/v1/chat/completions with model=openai/gpt-4o-mini returned HTTP 200 and a valid completion. I also verified that Config(generation_provider="requesty") resolves the expected base URL (https://router.requesty.ai/v1) and default model (openai/gpt-4o-mini).

Scope / compliance

Code-level provider entry plus a single factual row in the existing provider list — no new dependencies, no changes to other providers' defaults. The frontend Vercel-AI-SDK provider layer is intentionally untouched to keep this change focused on the SDK.


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.

Requesty (https://requesty.ai) is an OpenAI-compatible LLM gateway.
This adds it as a named provider in the AutoFigure SDK, mirroring the
existing OpenRouter wiring 1:1:

- config.py: add a 'requesty' branch to _get_default_base_url
  (https://router.requesty.ai/v1), _get_default_model (openai/gpt-4o-mini),
  and _get_default_enhancement_model; update provider comments/docstrings.
- llm_client.py: list Requesty among supported OpenAI-compatible providers
  (no special-casing needed; it uses the same openai SDK path as OpenRouter).
- README.md: add Requesty to the provider list and a one-line factual note.

Tested against the live endpoint: POST /v1/chat/completions with
model openai/gpt-4o-mini returned HTTP 200 and a valid completion.
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