Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gateway/examples/openai-multi-provider-proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# router in front of it. With no "selected_provider" in the request
# metadata the translator runs unconditionally.
#
# * Multi-provider mode — put openai-header-router first. It writes
# * Multi-provider mode — put llm-header-router first. It writes
# the chosen provider into metadata["selected_provider"]. Each
# translator then runs only when that selection equals its own "id".
# The "id" doubles as the upstream cluster name, so it must match an
Expand Down Expand Up @@ -98,7 +98,7 @@ spec:
params:
key: X-API-Key
in: header
- name: openai-header-router
- name: llm-header-router
version: v1
paths:
- path: /chat/completions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func TestLLMProviderTransformer_TransformProxy_AdditionalProviderAuthIsCondition
},
}},
Policies: &[]api.LLMPolicy{{
Name: "openai-header-router",
Name: "llm-header-router",
Version: "v1",
Paths: []api.LLMPolicyPath{{
Path: "/chat/completions",
Expand Down