Repository navigation
feat: add Requesty provider - #59
Open
Thibaultjaigu wants to merge 1 commit into
Open
Thibaultjaigu wants to merge 1 commit into
Thibaultjaigu wants to merge 1 commit into
Conversation
Register Requesty as an OpenAI-compatible provider next to OpenRouter in the server presets, setup presets, CLI env key map, standalone agent runtime and the web provider registry. It uses REQUESTY_API_KEY and https://router.requesty.ai/v1, and lists models from /v1/models.
This branch has not been deployed
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.
Summary
Adds Requesty (https://requesty.ai), an OpenAI-compatible LLM router, as a provider. It is registered at the same sites as OpenRouter and, since pi-ai has no native Requesty provider, it follows the DeepSeek pattern: it maps to the
openaipi-ai provider with a fixed base URL.Changes
packages/mindos/src/server/provider-settings.ts:requestypreset (base URLhttps://router.requesty.ai/v1,REQUESTY_API_KEY, model listing on)packages/mindos/src/setup/index.ts,packages/mindos/bin/lib/ai-config.js: setup preset and env key map entrypackages/mindos/src/server/agent-runtime.ts: alias toopenai, env key, default base URL for the standalone runtimepackages/mindos/src/server/handlers/settings-list-models.ts,settings-test-key.ts: default provider id setspackages/web/lib/agent/providers.ts:ProviderId, preset (under "more", signup link to https://app.requesty.ai/api-keys), env key, API typepackages/web/lib/ai/model-client.ts,packages/web/lib/study-coaching-config.ts: OpenAI-compatible provider setspackages/web/__tests__/agent/provider-endpoints.test.ts: API type, base URL and env var checksModel listing uses the existing
GET {baseUrl}/modelspath, same as OpenRouter. Requesty is not made a default anywhere.How to test
export REQUESTY_API_KEY=...(or paste the key in Settings > AI and pick Requesty)openai/gpt-4o-mini(anyvendor/modelid from https://router.requesty.ai/v1/models works)For the EU region, set the base URL to
https://router.eu.requesty.ai/v1.Validation
packages/mindos:tsc --noEmitpasses,vitest run --dir src244 files / 2749 tests passpackages/web/__tests__/agent/provider-endpoints.test.ts: 9 tests passtests/*.test.tsandtests/unit: same results with and without this change (the failures there come from web deps and build outputs not installed locally)openai/gpt-4o-minireplied, key test returned ok, model listing returned the catalogtscandeslintwere not run locally since the web package dependencies were not installed; the web changes are data entries matching the existing DeepSeek and OpenRouter entriesDisclosure: I work at Requesty. Happy to adjust anything to match project conventions.