Add Requesty provider (OpenAI-compatible)#172
Conversation
Signed-off-by: Thibault Jaigu <thibault.jaigu@gmail.com>
|
Since Requesty is OpenAI compatible, are there any features that openai-compatible provider cannot achieve and require the addition of a separate Requesty provider? |
|
That's a fair question, and honestly the answer is no — Requesty is cleanly OpenAI-compatible and doesn't need anything the openai-compatible provider can't already do. Given your design (one type per genuinely-distinct provider, not one per OpenAI-compatible endpoint), I completely understand not wanting to add a dedicated Requesty type. Happy to close this. If it'd be useful I could instead contribute a short docs note showing users how to point the existing openai-compatible option at I work at Requesty. This mirrored the existing OpenRouter provider as closely as possible. Happy to adjust or close it if it's not a fit. |
This adds a dedicated
requestyprovider, mirroring the existing OpenRouter provider as closely as possible.It uses the official Requesty Vercel AI SDK package,
@requesty/ai-sdk, whosecreateRequestyfactory is the env aware mirror ofcreateOpenRouterfrom@openrouter/ai-sdk-provider.Changes (
src/utils/values.ts):createRequestyfrom@requesty/ai-sdk.requesty: "https://router.requesty.ai/v1"toOfficialBaseURLs.requestyentry to the provider types array withconstructor: createRequesty, mirroring the OpenRouter entry (samecommonSettings, samegetModelListviaopenaiGetModelList).public/svg/requesty.svgfor the provider avatar (a simple placeholder mark, easy to swap for an official asset).@requesty/ai-sdktopackage.jsondependencies.Requesty is an OpenAI-compatible LLM gateway, and its model list is served from
/v1/modelsexactly like OpenRouter, sogetModelListreuses the sameopenaiGetModelListhelper. Model naming isprovider/model, same convention as OpenRouter.Verification: I tested the endpoint live before opening this.
GET https://router.requesty.ai/v1/modelsreturned 200 (572 models), and a chat completion withopenai/gpt-4o-miniagainsthttps://router.requesty.ai/v1/chat/completionsreturned 200. I did not run the full Quasar build locally, so the lockfile is not included; it can be regenerated with a normal install.Docs: https://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 wording/placement or close it if it's not a fit.