Skip to content

Add Requesty as a provider#1026

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

Add Requesty as a provider#1026
Thibaultjaigu wants to merge 1 commit into
prism-php:mainfrom
Thibaultjaigu:add-requesty-provider

Conversation

@Thibaultjaigu

Copy link
Copy Markdown

Adds Requesty as a provider, mirroring the existing OpenRouter provider.

Requesty (https://requesty.ai) is an OpenAI-compatible LLM router — base URL https://router.requesty.ai/v1, provider/model naming, Authorization: Bearer auth, optional HTTP-Referer/X-Title headers (the config site block).

Changes:

  • config/prism.php: a requesty config block mirroring openrouter (REQUESTY_API_KEY, REQUESTY_URL default https://router.requesty.ai/v1, site referer/title).
  • src/Enums/Provider.php: case Requesty = 'requesty';.
  • src/PrismManager.php: createRequestyProvider() factory + import (matches the create{Name}Provider convention).
  • src/Providers/Requesty/ (new): a faithful near-rename of src/Providers/OpenRouter/ (Requesty provider class + Handlers + Maps + Concerns), base URL from config.
  • docs/providers/requesty.md (new) + docs/.vitepress/config.mts nav entry + docs/components/ProviderSupport.vue support-matrix row.

php -l passes on every new/edited PHP file. Tests were not added because the OpenRouter tests rely on recorded HTTP fixtures — happy to add Requesty fixtures/tests if you'd like.

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.

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