8 Commits

Author SHA1 Message Date
Shaikh Fardin
8a8cdf785f fix(llm): force temperature 1.0 for gpt-6 and drop reasoning_effort before tools (#2446)
* 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>
2026-12-01 19:27:05 +08:00
Rudy Celekli
81557468c2 fix(llm): detect response_format value rejections that omit the param name
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>
2026-11-01 09:25:44 -05:00
Bingxi Zhao (Frank)
55f7e9a7a5 fix: scope GLM image retries to text-only content validation 2026-10-27 21:40:05 +08:00
Bingxi Zhao (Frank)
6d596df19d fix(llm): require schema context for 404 fallback 2026-08-26 01:03:51 +08:00
ZQR1101
ee7cbd7b52 fix(llm): stop matching bare 'tool' in schema-fallback detector
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.
2026-08-26 01:03:12 +08:00
Bingxi Zhao (Frank)
48ba9d405c fix(chat): bound the provider error body written to the log
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.
2026-08-21 16:58:01 +08:00
Bingxi Zhao
f12d6a8a1f fix: recover model catalog and provider transport (#888) 2026-08-17 01:58:23 +08:00
Bingxi Zhao (Frank)
fb3c568697 fix pageindex & minor bugs 2026-07-18 19:47:03 +08:00