feat(core): add Requesty as an OpenAI-compatible provider#3427
Open
Thibaultjaigu wants to merge 1 commit into
Open
feat(core): add Requesty as an OpenAI-compatible provider#3427Thibaultjaigu wants to merge 1 commit into
Thibaultjaigu wants to merge 1 commit into
Conversation
🦋 Changeset detectedLatest commit: 1b756ce The changes in this PR will be included in the next version bump. This PR includes changesets to release 10 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
|
Thanks for the contribution! A maintainer will review and merge your PR. Your commit attribution is preserved as @Thibaultjaigu. What happens next:
This comment will be updated as the status changes. |
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.
This adds a dedicated
requestyprovider to the model factory, mirroring the existing OpenRouter provider as closely as possible.Changes:
packages/agents-core/src/utils/model-factory.ts: importcreateRequestyfrom@requesty/ai-sdkand add acase 'requesty'tocreateProvider, mirroring theopenroutercase.packages/agents-core/package.json: add the@requesty/ai-sdkdependency.agents-docs/content/typescript-sdk/models.mdx: add Requesty to the supported providers table (REQUESTY_API_KEY)..changeset/add-requesty-provider.md: patch changeset for@inkeep/agents-core.Requesty is an OpenAI-compatible LLM gateway and uses the same
provider/modelnaming as OpenRouter (for examplerequesty/openai/gpt-4o-mini), so the existingprovider/modelsplit and factory dispatch handle it unchanged.createRequestyis the env-aware factory from the official@requesty/ai-sdkpackage, analogous tocreateOpenRouter.Verification: I tested the endpoint live before opening this.
GET https://router.requesty.ai/v1/modelsreturned 200 (578 models), and a chat completion withopenai/gpt-4o-miniagainsthttps://router.requesty.ai/v1/chat/completionsreturned 200. I did not run the full monorepo build locally (the dep needs an install), so the lockfile is not included.Docs: https://requesty.ai , https://app.requesty.ai/api-keys
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.