Skip to content
Closed
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
3 changes: 3 additions & 0 deletions docs/source/resources/configuration_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ The following is a complete reference of the ``plano_config.yml`` that controls
the Plano gateway. This where you enable capabilities like routing to upstream LLm providers, defining prompt_targets
where prompts get routed to, apply guardrails, and enable critical agent observability features.

``model_providers`` entries support an optional ``headers`` map for extra string HTTP headers sent to the
upstream provider. The deprecated ``llm_providers`` key accepts the same provider fields for legacy configs.

.. literalinclude:: includes/plano_config_full_reference.yaml
:language: yaml
:linenos:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,15 @@ model_providers:
passthrough_auth: true

# Custom/self-hosted endpoint with explicit http_host override
# headers: optional key-value map of extra HTTP headers sent to the upstream
# provider. Legacy llm_providers entries support the same provider fields.
- model: openai/llama-3.3-70b
base_url: https://api.custom-provider.com
http_host: api.custom-provider.com
access_key: $CUSTOM_API_KEY
headers:
User-Agent: "Plano/1.0"
X-Organization-Id: "org-example"

# Model aliases - use friendly names instead of full provider model names
model_aliases:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ listeners:
base_url: https://api.custom-provider.com
cluster_name: openai_api.custom-provider.com
endpoint: api.custom-provider.com
headers:
User-Agent: Plano/1.0
X-Organization-Id: org-example
http_host: api.custom-provider.com
model: llama-3.3-70b
name: openai/llama-3.3-70b
Expand Down Expand Up @@ -138,6 +141,9 @@ model_providers:
base_url: https://api.custom-provider.com
cluster_name: openai_api.custom-provider.com
endpoint: api.custom-provider.com
headers:
User-Agent: Plano/1.0
X-Organization-Id: org-example
http_host: api.custom-provider.com
model: llama-3.3-70b
name: openai/llama-3.3-70b
Expand Down
Loading