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
[Bug]: OpenAIChatModel structuted output fails on DeepSeek/vLLM — supportsNativeStructuredOutput() returns true for unsupported backends #1742
OpenAIChatModel.supportsNativeStructuredOutput() hardcodes true, but many OpenAI-compatible backends (DeepSeek, vLLM, Ollama, SiliconFlow) do not support response_format. This causes agent.call(msg, OutputClass.class) to fail with HTTP 400 on those backends.
Root Cause
OpenAIChatModel.java:195:
@OverridepublicbooleansupportsNativeStructuredOutput() {
returntrue; // ← assumes ALL OpenAI-compatible APIs support response_format
}
ReActAgent.doStructuredCall() trusts this unconditionally:
Activity
fix(agent): fallback to synthetic tool when native structured output …
fix(agent): fallback to synthetic tool when native structured output …