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
LLM judge always sends response_format: json_schema; OpenAI-compatible providers without it (e.g. DeepSeek) return HTTP 400 and Tier 3 can't be scored #207
With SKILL_EVAL_LLM_PROVIDER=openai-compatible and SKILL_EVAL_LLM_BASE_URL=https://api.deepseek.com/v1, the agent runs fine, but every judge call fails: Required judge evaluation failed: accuracy: LLM judge error: HTTP 400: Bad Request (also goal_accuracy and behavior_check). _chat_completion_payload() (tier3/eval_core/llm_judge.py) always adds _build_openai_response_format(...), which is {"type": "json_schema", "json_schema": {..., "strict": true}}, and there is no fallback. DeepSeek's chat endpoint answers that request with {"error": {"message": "This response_format type is unavailable now", "type": "invalid_request_error"}}.
Because the OpenCode model must use the same provider as the evaluator ("OpenCode's provider-qualified model must match the evaluator provider…"), a user can't run the agent on DeepSeek and the judge elsewhere either, so Tier 3 can't score such providers at all.
Expected: when the provider rejects json_schema, the judge retries with {"type": "json_object"} (or no response_format) and validates the returned JSON against the schema locally. Alternatively, a documented setting to choose the response format.
Reproduction steps
curl https://api.deepseek.com/v1/chat/completions -H "Authorization: Bearer $DEEPSEEK_API_KEY" \
-H "Content-Type: application/json" -d '{"model":"deepseek-flash","max_tokens":50, "messages":[{"role":"user","content":"Return JSON with score 1"}], "response_format":{"type":"json_schema","json_schema":{"name":"j","strict":true, "schema":{"type":"object","properties":{"score":{"type":"number"}},"required":["score"],"additionalProperties":false}}}}'# -> 400 "This response_format type is unavailable now"
Then run skillevaluator validate <skill> --tiers 1,3 -a opencode --model openai/deepseek-flash with the env above: the trials run, and every reward is unscoreable.
SkillEvaluator version or commit
v0.5.0 (7304d76); same payload builder on main9f81039.
Environment
Windows 11, Python 3.13 (uv), Harbor 0.24.0, agent opencode, provider openai-compatible (DeepSeek API, model deepseek-flash).
Before submitting
I agree to follow this project's Code of Conduct
I have searched the open issues and found no duplicate of this report
Drafted by an AI agent (Claude Opus 5.5 running in Hermes Agent v0.22.2 on Windows 11) for the account owner, who reviewed this text before it is posted.
Correction to the diagnosis above. The judge does have a schema downgrade path; it just doesn't recognize DeepSeek's error text.
tier3/harbor/templates/eval.py (_message_rejects_schema_option, line 2135) retries without response_format when the 400/422 body matches _UNSUPPORTED_REASON_INDICATORS (line 2091: "unsupported", "not supported", "unknown parameter", …).
DeepSeek returns "This response_format type is unavailable now", which matches none of them. Calling _message_rejects_schema_option on that body returns False; on "response_format is not supported" it returns True.
Tier 1's inference/client.py uses the same indicator list (line 179), so the Tier 1 rubric judge also fails against DeepSeek.
Suggested fix: add "unavailable" to both indicator lists (or treat any 400 whose message names response_format as a schema rejection). Verified against 9f81039.
Activity
thealps01-netizen commentedon Oct 17, 2026
Correction to the diagnosis above. The judge does have a schema downgrade path; it just doesn't recognize DeepSeek's error text.
tier3/harbor/templates/eval.py(_message_rejects_schema_option, line 2135) retries withoutresponse_formatwhen the 400/422 body matches_UNSUPPORTED_REASON_INDICATORS(line 2091: "unsupported", "not supported", "unknown parameter", …)."This response_format type is unavailable now", which matches none of them. Calling_message_rejects_schema_optionon that body returnsFalse; on"response_format is not supported"it returnsTrue.inference/client.pyuses the same indicator list (line 179), so the Tier 1 rubric judge also fails against DeepSeek.Suggested fix: add
"unavailable"to both indicator lists (or treat any 400 whose message namesresponse_formatas a schema rejection). Verified against9f81039.fix(judge): treat an "unavailable" schema option as a schema rejection
fix(judge): treat an "unavailable" schema option as a schema rejection