Skip to content

Add Requesty as a built-in model provider#353

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

Add Requesty as a built-in model provider#353
Thibaultjaigu wants to merge 1 commit into
plandex-ai:mainfrom
Thibaultjaigu:add-requesty-provider

Conversation

@Thibaultjaigu

Copy link
Copy Markdown

This adds Requesty (https://requesty.ai), an OpenAI-compatible LLM gateway, as a built-in model provider. The wiring mirrors the existing OpenRouter provider.

Like OpenRouter, Requesty exposes an OpenAI-compatible API and uses the same publisher/model naming convention (e.g. openai/gpt-4.1, google/gemini-2.5-flash), so it slots into the existing provider model with no new abstractions.

Changes:

  • app/shared/ai_models_providers.go: add the requesty provider constant, the REQUESTY_API_KEY env var, the https://router.requesty.ai/v1 base URL, the entry in AllModelProviders, and the BuiltInModelProviderConfigs registration (base URL + API key env var), mirroring the OpenRouter entry.
  • app/shared/ai_models_available.go: add Requesty as an additional provider option on a small set of models where the Requesty model name matches the existing OpenRouter model name exactly: openai/gpt-4.1, openai/gpt-4.1-mini, google/gemini-2.5-flash, google/gemini-2.5-pro.
  • app/cli/schema/json-schemas/definitions/model-providers.schema.json: add requesty to the provider enum.
  • docs/docs/models/model-providers.md: add a Requesty section under Built-In Providers.

I kept this minimal rather than wiring Requesty onto every model: I only added it to models whose name maps 1:1 to a Requesty model I verified routes successfully. Anthropic models were intentionally left out for now because Requesty's current naming (e.g. anthropic/claude-sonnet-4-5) doesn't line up exactly with Plandex's existing anthropic/claude-sonnet-4 model name, and I didn't want to introduce an incorrect mapping. Happy to extend coverage if maintainers prefer.

Testing:

  • go build ./... passes in app/shared, app/cli, and app/server.
  • go vet ./... passes in app/shared.
  • gofmt clean on the changed Go files.
  • Live calls to https://router.requesty.ai/v1/chat/completions returned HTTP 200 for each model added: openai/gpt-4.1, openai/gpt-4.1-mini, google/gemini-2.5-flash, and google/gemini-2.5-pro.

Disclosure: I work at Requesty. This mirrors the existing OpenRouter provider; happy to adjust wording/placement or close if it's not a fit.

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