You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ResolverParsingError when using vLLM/lmdeploy as backend (Qwen3-32B-GPTQ) #414
When using vllm or lmdeploy as the inference backend via the OpenAI-compatible API, langextract fails with a ResolverParsingError: Failed to parse JSON content: Expecting value: line 1 column 1 (char 0).
Interestingly, the exact same code and prompt work perfectly when using Ollama. It seems the JSON output from vLLM/lmdeploy is not being correctly captured or parsed by the Resolver, even when the model returns a valid JSON string (verified via manual requests calls).
File ~/programs/miniconda3/envs/agents/lib/python3.12/site-packages/langextract/resolver.py:271, in Resolver.resolve(self, input_text, suppress_parse_errors, **kwargs)
267 logging.exception(
268 "Failed to parse input_text: %s, error: %s", input_text, e
269 )
270 return []
--> 271 raise ResolverParsingError(str(e)) from e
ResolverParsingError: Failed to parse JSON content: Expecting value: line 1 column 1 (char 0)
Activity
ywan614 commentedon Mar 16, 2026
fence_output=False,
use_schema_constraints=False
add arguments above to avoid this issue
wangjiawen2013 commentedon Mar 16, 2026
I tried, but it still fails in most cases (the success rate is below 20%).
fix: reduce return statements in _extract_content to pass pylint R0911