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,7 +180,10 @@ async def anthropic_proxy_route(
|
||||||
|
|
||||||
## check for streaming
|
## check for streaming
|
||||||
is_streaming_request = False
|
is_streaming_request = False
|
||||||
if "stream" in str(updated_url):
|
# 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
|
is_streaming_request = True
|
||||||
|
|
||||||
## CREATE PASS-THROUGH
|
## CREATE PASS-THROUGH
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue