fix ALLOWED_VERTEX_AI_PASSTHROUGH_HEADERS

This commit is contained in:
Ishaan Jaffer 2026-01-21 17:51:57 -08:00
parent e877b08314
commit 998aa1bff4

View file

@ -1122,6 +1122,15 @@ BEDROCK_AGENT_RUNTIME_PASS_THROUGH_ROUTES = [
"generateQuery/",
"optimize-prompt/",
]
# Headers that are safe to forward from incoming requests to Vertex AI
# Using an allowlist approach for security - only forward headers we explicitly trust
ALLOWED_VERTEX_AI_PASSTHROUGH_HEADERS = {
"anthropic-beta", # Required for Anthropic features like extended context windows
"content-type", # Required for request body parsing
}
BASE_MCP_ROUTE = "/mcp"
BATCH_STATUS_POLL_INTERVAL_SECONDS = int(