Skip to content

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

Open
Thibaultjaigu wants to merge 1 commit into
bramses:masterfrom
Thibaultjaigu:add-requesty-provider
Open

feat: add Requesty as an OpenAI-compatible provider#208
Thibaultjaigu wants to merge 1 commit into
bramses:masterfrom
Thibaultjaigu:add-requesty-provider

Conversation

@Thibaultjaigu

Copy link
Copy Markdown

This adds Requesty as a first-class AI provider, mirroring the existing OpenRouter integration as closely as possible.

Requesty is an OpenAI-compatible LLM gateway that exposes many models through one API using provider/model naming, the same convention as OpenRouter. Since the plugin already uses @ai-sdk/openai-compatible for OpenAI-compatible providers, Requesty reuses that path (no new dependency).

Changes:

  • src/Services/Adapters/RequestyAdapter.ts: new adapter mirroring OpenRouterAdapter (Bearer auth, /models fetch with provider prefixing, base URL https://router.requesty.ai, path suffix /v1).
  • src/Services/AiProviderService.ts: register the adapter and route requesty through createOpenAICompatible.
  • src/Constants.ts, src/Services/DefaultConfigs.ts, src/Models/Config.ts: add the requesty service constant, default config, API key and frontmatter settings.
  • src/Services/ApiAuthService.ts, src/Utilities/ProviderHelpers.ts, src/Utilities/FrontmatterHelpers.ts, src/Services/SettingsService.ts, src/Services/SettingsMigration.ts, src/Commands/*, src/Views/ChatGPT_MDSettingsTab.ts: wire Requesty through auth, provider detection, settings UI and command handlers, parallel to OpenRouter.

The final endpoint resolves to https://router.requesty.ai/v1/chat/completions.

Verification: npx tsc --noEmit exits 0, yarn build succeeds, and the full test suite passes (117/117). I also confirmed the endpoint live: GET https://router.requesty.ai/v1/models returned 200 and a chat completion returned 200.

Docs: https://requesty.ai , https://docs.requesty.ai , https://app.requesty.ai/api-keys

I work at Requesty. This mirrors the existing OpenRouter provider as closely as possible. Happy to adjust or close it if it is 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