Skip to content

feat: add Requesty provider - #59

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

Thibaultjaigu wants to merge 1 commit into
GeminiLight:mainfrom
Thibaultjaigu:add-requesty-provider

Conversation

@Thibaultjaigu

Copy link
Copy Markdown

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 openai pi-ai provider with a fixed base URL.

Changes

  • packages/mindos/src/server/provider-settings.ts: requesty preset (base URL https://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 entry
  • packages/mindos/src/server/agent-runtime.ts: alias to openai, env key, default base URL for the standalone runtime
  • packages/mindos/src/server/handlers/settings-list-models.ts, settings-test-key.ts: default provider id sets
  • packages/web/lib/agent/providers.ts: ProviderId, preset (under "more", signup link to https://app.requesty.ai/api-keys), env key, API type
  • packages/web/lib/ai/model-client.ts, packages/web/lib/study-coaching-config.ts: OpenAI-compatible provider sets
  • packages/web/__tests__/agent/provider-endpoints.test.ts: API type, base URL and env var checks

Model listing uses the existing GET {baseUrl}/models path, same as OpenRouter. Requesty is not made a default anywhere.

How to test

  1. export REQUESTY_API_KEY=... (or paste the key in Settings > AI and pick Requesty)
  2. Use model openai/gpt-4o-mini (any vendor/model id from https://router.requesty.ai/v1/models works)
  3. Use "Test" and "List models" in the provider settings, then send a chat message

For the EU region, set the base URL to https://router.eu.requesty.ai/v1.

Validation

  • packages/mindos: tsc --noEmit passes, vitest run --dir src 244 files / 2749 tests pass
  • packages/web/__tests__/agent/provider-endpoints.test.ts: 9 tests pass
  • Root tests/*.test.ts and tests/unit: same results with and without this change (the failures there come from web deps and build outputs not installed locally)
  • Live check through the mindos code path (standalone runtime model resolution, settings test key and list models handlers): openai/gpt-4o-mini replied, key test returned ok, model listing returned the catalog
  • Web tsc and eslint were not run locally since the web package dependencies were not installed; the web changes are data entries matching the existing DeepSeek and OpenRouter entries

Disclosure: I work at Requesty. Happy to adjust anything to match project conventions.

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

No deployments
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