mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
Add starting status for replicate
This commit is contained in:
parent
3d38ec4756
commit
028cdaf77b
1 changed files with 2 additions and 2 deletions
|
|
@ -213,7 +213,7 @@ def completion(
|
|||
response = httpx_client.get(url=prediction_url, headers=headers)
|
||||
if (
|
||||
response.status_code == 200
|
||||
and response.json().get("status") == "processing"
|
||||
and response.json().get("status") in ["processing", "starting"]
|
||||
):
|
||||
continue
|
||||
return litellm.ReplicateConfig().transform_response(
|
||||
|
|
@ -284,7 +284,7 @@ async def async_completion(
|
|||
response = await async_handler.get(url=prediction_url, headers=headers)
|
||||
if (
|
||||
response.status_code == 200
|
||||
and response.json().get("status") == "processing"
|
||||
and response.json().get("status") in ["processing", "starting"]
|
||||
):
|
||||
continue
|
||||
return litellm.ReplicateConfig().transform_response(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue