Files
docker-agent/examples/bypass_models_gateway.yaml
Arnaud Héritier d11fbf1a91 chore(examples): bump stale model references to current-generation values
Bumps model IDs across examples/*.yaml (and the gopher.hcl sibling) to the
current-generation anchors: Claude Sonnet 5 / Opus 5 (with Sonnet 4.6 / Opus
4.8 kept where a key signals a cheaper/fallback tier), GPT-5.6-sol/-terra,
Gemini 3.8 Flash, Grok 4.5, Kimi K3, and Llama 4 Maverick on OpenRouter.

Refs #4137.
2026-09-03 08:38:54 +00:00

47 lines
1.7 KiB
YAML

# Demonstrates `bypass_models_gateway`, which forces a specific model to
# connect directly to its provider instead of routing through a models gateway
# (configured via --models-gateway / DOCKER_AGENT_MODELS_GATEWAY).
#
# This is useful when most models should go through a central gateway (for
# billing, auditing, or shared credentials) but one model must talk to its
# provider directly — for example a model the gateway does not proxy, or one
# that needs a dedicated API key.
#
# A bypassed model authenticates with the provider's own credentials
# (OPENAI_API_KEY, ANTHROPIC_API_KEY, or an explicit token_key) rather than the
# gateway's short-lived token.
#
# A custom base_url (on the model or inherited from a named provider
# definition) implies the bypass automatically — user-chosen endpoints are
# never routed through the models gateway.
models:
# Routed through the gateway when one is configured.
gateway-model:
provider: openai
model: gpt-5.6-sol
# Always talks directly to Anthropic, even when a gateway is configured.
# Requires ANTHROPIC_API_KEY to be set.
direct-model:
provider: anthropic
model: claude-sonnet-5
bypass_models_gateway: true
# A custom base_url implies the bypass; no flag needed.
proxied-model:
provider: openai
model: gpt-5.6-sol
base_url: https://proxy.internal.example.com/v1
agents:
root:
model: direct-model
description: Assistant whose model bypasses the models gateway
instruction: You are a helpful assistant.
sub_agents: [proxied]
proxied:
model: proxied-model
description: Assistant whose custom endpoint implies the gateway bypass
instruction: You are a helpful assistant.