mirror of
https://github.com/katanemo/plano.git
synced 2026-04-26 09:16:24 +02:00
feat: add passthrough_auth option for forwarding client Authorization header (#687)
* feat: add passthrough_auth option for forwarding client Authorization header * fix tests * Update comment to reflect upstream forwarding * Apply suggestions from code review --------- Co-authored-by: Adil Hafeez <adil.hafeez@gmail.com> Co-authored-by: Adil Hafeez <adil@katanemo.com>
This commit is contained in:
parent
ba1f783adf
commit
4d53297c17
8 changed files with 177 additions and 26 deletions
|
|
@ -1,4 +1,4 @@
|
|||
$schema: "http://json-schema.org/draft-07/schema#"
|
||||
$schema: 'http://json-schema.org/draft-07/schema#'
|
||||
type: object
|
||||
properties:
|
||||
version:
|
||||
|
|
@ -109,12 +109,12 @@ properties:
|
|||
endpoints:
|
||||
type: object
|
||||
patternProperties:
|
||||
"^[a-zA-Z][a-zA-Z0-9_]*$":
|
||||
'^[a-zA-Z][a-zA-Z0-9_]*$':
|
||||
type: object
|
||||
properties:
|
||||
endpoint:
|
||||
type: string
|
||||
pattern: "^.*$"
|
||||
pattern: '^.*$'
|
||||
connect_timeout:
|
||||
type: string
|
||||
protocol:
|
||||
|
|
@ -143,6 +143,9 @@ properties:
|
|||
type: boolean
|
||||
base_url:
|
||||
type: string
|
||||
passthrough_auth:
|
||||
type: boolean
|
||||
description: "When true, forwards the client's Authorization header to upstream instead of using the configured access_key. Useful for routing to services like LiteLLM that validate their own virtual keys."
|
||||
http_host:
|
||||
type: string
|
||||
provider_interface:
|
||||
|
|
@ -187,6 +190,9 @@ properties:
|
|||
type: boolean
|
||||
base_url:
|
||||
type: string
|
||||
passthrough_auth:
|
||||
type: boolean
|
||||
description: "When true, forwards the client's Authorization header to upstream instead of using the configured access_key. Useful for routing to services like LiteLLM that validate their own virtual keys."
|
||||
http_host:
|
||||
type: string
|
||||
provider_interface:
|
||||
|
|
@ -219,7 +225,7 @@ properties:
|
|||
model_aliases:
|
||||
type: object
|
||||
patternProperties:
|
||||
"^.*$":
|
||||
'^.*$':
|
||||
type: object
|
||||
properties:
|
||||
target:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue