From 2ee69dffac3c213af03d41d7c89f46924045a937 Mon Sep 17 00:00:00 2001 From: Zishan Date: Thu, 20 Feb 2025 13:48:12 +0100 Subject: [PATCH] remove comment --- proxy/routes/anthropic.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/proxy/routes/anthropic.py b/proxy/routes/anthropic.py index 3bf7ee3..1f92305 100644 --- a/proxy/routes/anthropic.py +++ b/proxy/routes/anthropic.py @@ -165,17 +165,6 @@ async def handle_streaming_response( raise HTTPException(status_code=response.status_code, detail=error_detail) async def event_generator() -> Any: - # async with client.stream( - # "POST", - # anthropic_request.url, - # headers=anthropic_request.headers, - # content=anthropic_request.content, - # ) as response: - # if response.status_code != 200: - # yield json.dumps( - # {"error": f"Failed to fetch response: {response.status_code}"} - # ).encode() - # return async for chunk in response.aiter_bytes(): chunk_decode = chunk.decode().strip() if not chunk_decode: