fix: remove project id before proxying (#6750)

This commit is contained in:
cthomas
2025-12-11 16:29:05 -08:00
committed by Caren Thomas
parent 4be813b956
commit 2dac75a223

View File

@@ -323,7 +323,8 @@ async def anthropic_messages_proxy(
request_data = json.loads(body)
is_streaming = request_data.get("stream", False)
model_name = request_data.get("model")
project_id = request_data.get("project_id")
# Extract and remove project_id (internal use only, not for Anthropic API)
project_id = request_data.pop("project_id", None)
logger.debug(f"[Anthropic Proxy] Request is streaming: {is_streaming}")
logger.debug(f"[Anthropic Proxy] Model: {model_name}")
logger.debug(f"[Anthropic Proxy] Project ID: {project_id}")