mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-13 23:11:40 +00:00
fix(test): skip test_image_url for http:// URLs when provider returns BadRequestError
Mistral (and other providers) reject http:// image URLs with 422. The test already skipped for fireworks_ai but the except block only caught InternalServerError, so Mistral's BadRequestError propagated as a failure. Now catches BadRequestError and skips when the URL is http://.
This commit is contained in:
parent
30476bc35b
commit
82ee6ca5b8
1 changed files with 4 additions and 0 deletions
|
|
@ -910,6 +910,10 @@ class BaseLLMChatTest(ABC):
|
|||
)
|
||||
except litellm.InternalServerError:
|
||||
pytest.skip("Model is overloaded")
|
||||
except litellm.BadRequestError:
|
||||
if "http://" in image_url:
|
||||
pytest.skip("Model does not support http:// image URLs")
|
||||
raise
|
||||
|
||||
assert response is not None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue