fix: remove project id before proxying (#6750)
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user