* fix(llm): force temperature 1.0 for gpt-6 and treat reasoning_effort+tools rejection as tool-schema unsupported
* fix(llm): drop reasoning_effort instead of tools when combined request is rejected
---------
Co-authored-by: Shaikh Fardin <152140625+Fardin7798@users.noreply.github.com>
Co-authored-by: OrdoAbChao7 <2369980241@qq.com>
is_response_format_unsupported gates every marker behind an explicit
"response_format" mention. But its own docstring lists DashScope's
rejection — "'json_object' is not supported by this model" — which names
the value, not the parameter, so the guard returned False and the
graceful drop-response_format-and-retry never fired; the JSON call hard-
failed instead.
Let the value-specific markers (json_object, json_schema, the
response_format.type messages) stand on their own, and keep the generic
"unsupported"/"not valid" markers gated behind the response_format
mention so an unrelated unsupported-parameter error (e.g. stream_options)
still does not strip response_format.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The chat loop silently strips tools whenever a provider 400 mentions
the word tool. Narrow the matcher to schema/parameter rejection phrases
so unrelated errors no longer disable tool calling for the turn.
The tool-schema rejection log exists so a user can attach
`deeptutor.jsonl` to a bug report. `error_text()` returns the whole body,
and some providers echo the rejected request back — the tool schemas,
sometimes the messages — which would put a copy of the conversation into
a file headed for a public issue.
`logged_error_text()` caps it and says how much it dropped. The parameter
a provider objects to is always near the front, so the diagnostic keeps
working; the compat predicates keep reading the unbounded text.