24 lines
679 B
YAML

# yaml-language-server: $schema=https://agentgateway.dev/schema/config
config:
tracing:
otlpEndpoint: http://localhost:4317
randomSampling: true
fields:
# Agentgateway implements the OpenTelemetry v1.37.0 specification for span attributes by default
# See https://opentelemetry.io/docs/specs/semconv/gen-ai/gen-ai-spans/#inference.
add: {}
binds:
- port: 3000
listeners:
- routes:
- backends:
- ai:
name: gemini
provider:
gemini:
# Optional; overrides the model in requests
model: gemini-1.5-flash
policies:
backendAuth:
key: $GEMINI_API_KEY