mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
style: carry clearer status_code comparison into renamed e2e dir
This commit is contained in:
parent
5782b74e65
commit
c727d96fc9
2 changed files with 2 additions and 2 deletions
|
|
@ -91,7 +91,7 @@ class ProbeResult(BaseModel):
|
|||
|
||||
@property
|
||||
def healthy(self) -> bool:
|
||||
return 200 <= self.status_code != 404 and self.status_code < 500
|
||||
return 200 <= self.status_code < 500 and self.status_code != 404
|
||||
|
||||
|
||||
class StreamingResponse(BaseModel):
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ class ProbeResult:
|
|||
def healthy(self) -> bool:
|
||||
# Route exists (not 404), handler did not crash (not 5xx), request
|
||||
# completed (not -1). A 4xx (missing params/auth) still means it ran.
|
||||
return 200 <= self.status_code != 404 and self.status_code < 500
|
||||
return 200 <= self.status_code < 500 and self.status_code != 404
|
||||
|
||||
def __str__(self) -> str:
|
||||
return f"GET {self.url} -> {self.status_code}\n{self.body[:600]}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue