feat(providers): add Requesty provider preset - #942
Open
Thibaultjaigu wants to merge 1 commit into
Open
Thibaultjaigu wants to merge 1 commit into
Thibaultjaigu wants to merge 1 commit into
Conversation
Adds a Requesty entry to the provider preset catalog next to OpenRouter, with chat, messages and responses bases on https://router.requesty.ai/v1. Requesty has no pi-ai builtin, so it maps to the openrouter catalog like the other gateways.
Contributor
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 1 selected item(s). |
Contributor
🔍 OpenCodeReview — detailed findings✅ Passing — no critical/high findings. Reviewed 1 file(s), 0 finding(s) total. |
Owner
|
Thanks Thibault! Good to hear from you again (we crossed paths on Kilocode stuff before). I'm impressed you saw this before it even ended up in a release. This is a good add. I'm going to hold on it though because I want to add a couple more thing to the definitions, which would likely help:
I'll ping you back - but thank you for the rapid PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Adds Requesty to the "Start from a preset" picker in the Add Provider modal. Picking it fills in the Requesty endpoints for chat, messages and responses, so setup is just pasting an API key.
✨ New Features
packages/backend/data/provider-presets.json, placed right after OpenRouter and following the same shape. The chat, messages and responses bases all point tohttps://router.requesty.ai/v1. Requesty has no pi-ai builtin, sopiAiProviderisopenrouter, the same as Kilocode and Neuralwatt, and there's a matching assertion in the existing gateway mapping test. The notes field links the key page (https://app.requesty.ai/api-keys) and mentions the EU base (https://router.eu.requesty.ai/v1).I left out the legacy
completionsendpoint because Requesty returns 404 for/v1/completions, and theopenrouter-decisionsalpha is OpenRouter specific. I did not add a quota checker because Requesty has no documented balance or credits endpoint.How to test: open Add Provider, pick the Requesty preset, paste a key from https://app.requesty.ai/api-keys, then route a model such as
openai/gpt-4o-mini(chat or responses) oranthropic/claude-haiku-4-5(messages).Checks run:
bunx --bun vitest run --config vitest.config.tsin packages/backend: 319 files, 3539 tests passedbun run typecheck: passbun run lint:checkandbun run format:check: cleanapplyProviderPresetfrom the built-in catalog, then posted to each wired base. All returned 200: chat/completions and responses withopenai/gpt-4o-mini, messages withanthropic/claude-haiku-4-5.Disclosure: I work at Requesty. Happy to adjust anything to match project conventions.