mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
fix ALLOWED_VERTEX_AI_PASSTHROUGH_HEADERS
This commit is contained in:
parent
e877b08314
commit
998aa1bff4
1 changed files with 9 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue