From 1f30c47e0e7795298dd99cfb537ab22f9df593a9 Mon Sep 17 00:00:00 2001 From: Ian Date: Wed, 7 Oct 2026 17:15:07 -0400 Subject: [PATCH] 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. --- strix/core/execution.py | 3 +-- tests/test_execution_transient_retry.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/strix/core/execution.py b/strix/core/execution.py index 508eccfe..c6af2263 100644 --- a/strix/core/execution.py +++ b/strix/core/execution.py @@ -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 diff --git a/tests/test_execution_transient_retry.py b/tests/test_execution_transient_retry.py index 57b26db3..f175e1e9 100644 --- a/tests/test_execution_transient_retry.py +++ b/tests/test_execution_transient_retry.py @@ -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 "