Skip to content

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

Open
Thibaultjaigu wants to merge 1 commit into
op7418:mainfrom
Thibaultjaigu:feat/requesty-provider
Open

feat: add Requesty as an OpenAI-compatible provider#662
Thibaultjaigu wants to merge 1 commit into
op7418:mainfrom
Thibaultjaigu:feat/requesty-provider

Conversation

@Thibaultjaigu

Copy link
Copy Markdown

Add Requesty as an OpenAI-compatible provider

This adds Requesty (https://router.requesty.ai/v1) as a first-class provider preset, mirroring how the existing gateway providers are wired.

How it fits the existing architecture

Providers in this repo are config-driven: VENDOR_PRESETS in src/lib/provider-catalog.ts is the single source of truth, and the quick-add UI, search-and-add, and model discovery are all generated from it. This PR adds a requesty preset there rather than adding any bespoke code path.

  • src/lib/provider-catalog.ts — new requesty preset: base URL https://router.requesty.ai/v1, openai-compatible protocol, api_key auth, a few curated provider/model defaults, and meta doc links. Because the base URL ends in /v1 and the preset isn't catalog-only, Requesty automatically flows through the generic /v1/models search-and-add path (canReliablyFetchModels / discoverModels) — no dedicated catalog fetcher needed.
  • src/lib/provider-icon-rule.ts — added "requesty" to ProviderIconKey plus a brand-scoped matcher (requesty.ai host / requesty name).
  • src/components/settings/provider-presets.tsx — added a RequestyIcon and wired it into the icon maps (the model-selector already referenced a requesty logo slug; this makes the backend match it).

OpenRouter's preset uses the openrouter protocol (an Anthropic-skin for the Claude Code SDK). Requesty's gateway is OpenAI-compatible, so the faithful mirror is a branded openai-compatible preset, exactly like the existing branded OpenAI-compatible presets in the catalog.

Verification

  • tsc --noEmit: clean before and after.
  • test:unit: 4540 pass / 0 fail.
  • ESLint on touched files: 0 errors.
  • Live test against the real endpoint: chat completion with openai/gpt-4o-mini → 200; GET /v1/models → 200 with 596 models (context_window / supports_tool_calling fields present).

I work at Requesty. This mirrors the existing OpenRouter provider as closely as possible. Happy to adjust or close it if it's not a fit.

@vercel

vercel Bot commented Jul 23, 2026

Copy link
Copy Markdown

@Thibaultjaigu is attempting to deploy a commit to the op7418's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added the area:ui PR/issue 影响面: ui label Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ui PR/issue 影响面: ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant