13 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
Bingxi Zhao (Frank)
3166cda206 fix(llm): bound effective progress and recover known responses
Fixes #2538
2026-11-15 01:42:46 +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
yinuoba
4119693cc5 fix(llm): match zhipu/GLM multimodal rejection so text-only retry fires
Zhipu/GLM rejects non-text content blocks with error 1210 and a Chinese
message ('messages.content.type 参数非法,取值范围 [\'text\']'). The dotted
path and Chinese text match none of the English markers in
is_image_input_unsupported(), so the agent loop's degrade-to-text retry
never triggers and chat with a PDF attachment hard-fails with the raw
400. Add 'content.type' and '取值范围' markers so the existing fallback
fires.
2026-10-27 13:18:09 +08:00
Bingxi Zhao (Frank)
04040a2c06 release: v1.6.5
Ship a content workspace you choose, one exec tool for every language,
Mastery Path modes that gate its tools, and Settings that grades
readiness instead of listing faults.

Release notes: assets/releases/ver1-6-5.md
2026-09-06 13:46:29 +08:00
Bingxi Zhao (Frank)
93df3d48b7 release: v1.6.4
Ship lighter isolated runtimes, richer Books and Mastery flows,
Reading/session polish, and explicit model API capabilities.

Release notes: assets/releases/ver1-6-4.md
2026-09-03 01:38:54 +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
NoxsMedia
7411315b6b fix: converge LightRAG transport failures and cancellation (#940)
* fix: bound LightRAG adapter retries

* fix: harden LightRAG retry boundaries

* fix: propagate Codex transport failures

* fix: converge LightRAG cancellation cleanup

---------

Co-authored-by: nox <work@noxsmedia.com>
2026-08-21 15:42:39 +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