forked from phoenix/litellm-mirror
fix - add real streaming for anthropic pass through
This commit is contained in:
parent
470d4608ff
commit
7a6cc9c861
1 changed files with 5 additions and 2 deletions
|
@ -180,8 +180,11 @@ async def anthropic_proxy_route(
|
|||
|
||||
## check for streaming
|
||||
is_streaming_request = False
|
||||
if "stream" in str(updated_url):
|
||||
is_streaming_request = True
|
||||
# anthropic is streaming when 'stream' = True is in the body
|
||||
if request.method == "POST":
|
||||
_request_body = await request.json()
|
||||
if _request_body.get("stream"):
|
||||
is_streaming_request = True
|
||||
|
||||
## CREATE PASS-THROUGH
|
||||
endpoint_func = create_pass_through_route(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue