feat: Introduce custom-host provider with configurable base URL and API key support.#1513
Open
Jaiaggarwaaaaal wants to merge 2 commits intoPortkey-AI:mainfrom
Open
feat: Introduce custom-host provider with configurable base URL and API key support.#1513Jaiaggarwaaaaal wants to merge 2 commits intoPortkey-AI:mainfrom
Jaiaggarwaaaaal wants to merge 2 commits intoPortkey-AI:mainfrom
Conversation
narengogi
reviewed
Jan 29, 2026
_debug_validator.ts
Outdated
| @@ -0,0 +1,30 @@ | |||
| import { VALID_PROVIDERS } from './src/globals'; | |||
Member
There was a problem hiding this comment.
is this a test file?
you might've commited it by mistake
Member
There was a problem hiding this comment.
i see that there is no request body in your requests
can you test the behaviour with one of the unified routes like /v1/chat/completions and any arbitrary route like v1/my/custom/route ?
and can you try with different payloads like json and multipart-formdata?
…improve provider validation and error handling.
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.
feat: Introduce
custom-hostprovider for arbitrary proxy supportDescription:
This PR introduces a new
custom-hostprovider to the Gateway. This feature allows users to proxy requests to any configurable base URL, enabling integration with LLM providers or services that are not natively supported by the Gateway. It supports dynamic configuration of the target endpoint and API key authentication.Detailed changes:
custom-hostprovider implementation insrc/providers/custom-host/.src/providers/index.ts.src/types/requestBody.tsto includecustom-hostconfiguration types.src/globals.tsto support the new provider constant.Tests Run/Test cases added:
Type of Change: