mirror of
https://github.com/usestrix/strix.git
synced 2026-10-12 03:47:56 +00:00
Revert the Vercel AI Gateway image-rejection guess
It also matched errors about one image form, e.g. Groq's 'Non-image file content parts' functionality not supported.
This commit is contained in:
parent
887ec1727f
commit
1f30c47e0e
2 changed files with 1 additions and 3 deletions
|
|
@ -66,8 +66,7 @@ _IMAGE_REJECTION = re.compile(
|
|||
r"|is not a multimodal model|at most 0 image\(s\)" # vLLM
|
||||
r"|does not support image input" # LiteLLM's Fireworks check
|
||||
r"|doesn't support the image field" # Bedrock Converse
|
||||
r"|unknown variant `image_url`" # DeepSeek, e.g. via Vercel AI Gateway
|
||||
r"|'[^']*image[^']*' functionality not supported", # Vercel AI Gateway (AI SDK), unverified
|
||||
r"|unknown variant `image_url`", # DeepSeek, e.g. via Vercel AI Gateway
|
||||
re.IGNORECASE,
|
||||
)
|
||||
_MAX_COMPACTIONS_PER_CYCLE = 2
|
||||
|
|
|
|||
|
|
@ -189,7 +189,6 @@ async def test_run_cycle_does_not_retry_permanent_error(
|
|||
(400, "my-model is not a multimodal model", True),
|
||||
(400, "This model doesn't support the image field for user messages.", True),
|
||||
(422, "messages[3]: unknown variant `image_url`, expected `text`", True),
|
||||
(400, "'Image URLs in user messages' functionality not supported.", True),
|
||||
(
|
||||
400,
|
||||
"OpenRouterException: Message: This model's maximum context length is 1048576 "
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue