fix(test_streaming.py): handle hf tgi zephyr not loading for streaming issue

This commit is contained in:
Krrish Dholakia 2024-02-15 19:24:02 -08:00
parent 31c8d62ac2
commit eb45df16f1
3 changed files with 27 additions and 12 deletions

View file

@ -6975,6 +6975,14 @@ def exception_type(
model=model,
response=original_exception.response,
)
elif original_exception.status_code == 503:
exception_mapping_worked = True
raise ServiceUnavailableError(
message=f"HuggingfaceException - {original_exception.message}",
llm_provider="huggingface",
model=model,
response=original_exception.response,
)
else:
exception_mapping_worked = True
raise APIError(