Commit Graph

452 Commits

Author SHA1 Message Date
Bingxi Zhao
07bb3c19e9 Merge pull request #1041 from junjiezhou1122/fix/anthropic-sdk-1x-temperature-extra-body 2026-08-29 11:30:11 +08:00
Bingxi Zhao
3f6e82405e Merge pull request #741 from lukiod/fix/secret-file-permissions 2026-08-29 11:27:40 +08:00
Junjie Zhou
bf269ec112 fix(llm): route Anthropic temperature via extra_body for SDK 1.x compat
anthropic-sdk-python >= 1.0 (released 2026-08-20) removed `temperature`
from the explicit signature of `AsyncMessages.create()` and
`AsyncMessages.stream()`. Any LLM call through the Anthropic binding —
including the real Anthropic API and any Anthropic-compatible gateway
(e.g. MiniMax, AWS Bedrock Claude) — now raises:

    AsyncMessages.create() got an unexpected keyword argument 'temperature'

The Anthropic API itself still accepts `temperature` as a top-level
request field; the SDK simply forces callers to tunnel it through
`extra_body` instead of accepting it as a first-class kwarg. This patch
moves both `temperature` assignments in `AnthropicProvider._build_kwargs`
from the top-level kwargs to `extra_body`, so the wire payload is
unchanged and SDK 1.x stops rejecting the call.

Tests in test_anthropic_provider_fixes.py are updated to assert against
`extra_body['temperature']` instead of top-level `temperature`, plus a
new `test_temperature_is_routed_via_extra_body` covers the new
behaviour end-to-end.
2026-08-28 01:32:25 +08:00
Bingxi Zhao (Frank)
bd9f6a7625 release: v1.6.0 — connected learning workspaces
Release notes: assets/releases/ver1-6-0.md

Ship source-faithful reading, Courses and Little Tutor, Ask Questions,
bounded web-source sync, and shared Books with private reader state.
2026-08-27 22:03:09 +08:00
Bingxi Zhao
8e281c6e27 Merge pull request #996 from zhou2030109-glitch/codex/selection-tutor-learning-spaces
feat: add selection tutor and course workspaces
2026-08-26 02:41:02 +08:00
Bingxi Zhao
91e1f32b20 Merge pull request #904 from evan188199-tech/codex/split-web-source-sync
feat: add bounded web source sync
2026-08-26 02:35:55 +08:00
Bingxi Zhao (Frank)
5684e6eab4 fix(knowledge): secure and reconcile web source sync 2026-08-26 02:26:58 +08:00
Bingxi Zhao (Frank)
48c39084cf fix(ci): validate release tags and protect latest 2026-08-26 02:26:58 +08:00
XZH
e12d97b58f fix(knowledge): enforce web source sync bounds 2026-08-26 02:26:58 +08:00
XZH
40e35a79b3 test(ci): cover release tag classification 2026-08-26 02:26:58 +08:00
XZH
0d8b734a76 feat(knowledge): add web source sync 2026-08-26 02:26:58 +08:00
Bingxi Zhao (Frank)
69b472b109 fix(courses): enforce organization and tutor grounding integrity 2026-08-26 02:25:23 +08:00
diffaudit-review
cdbcacace4 fix: ground selection tutor in source message
Short selections such as rc carried only the raw token and an opaque parent session id. Capture the containing message id, resolve it from the parent session, and provide both the source message and exact selection to the tutor prompt.
2026-08-26 02:25:23 +08:00
diffaudit-review
3709c9e854 feat: add selection tutor and course workspaces 2026-08-26 02:25:23 +08:00
Bingxi Zhao (Frank)
693772a542 fix(chat): integrate guarded output with ask questions 2026-08-26 02:10:58 +08:00
Bingxi Zhao (Frank)
11c0a1ed68 fix(chat): preserve ask-user protocol across fallbacks and history 2026-08-26 02:08:46 +08:00
SeleiXi
213508b526 fix(session): place ask_user clarifications before assistant answer
Resolved ask_user exchanges happened before the assistant produced the
row's answer, so they must precede the row's content in both
_build_history() and format_messages_as_transcript(). The previous order
(assistant content first, clarification second) made later turns see the
answer before the user supplied the missing context, confusing the model
and polluting rolling summaries.

Update the test that had locked in the wrong order.
2026-08-26 02:08:33 +08:00
SeleiXi
81e9830452 fix: rehydrate ask_user answers into later-turn context
get_messages_for_context only loaded role/content, so extract_ask_user_clarifications always saw empty events and the model forgot prior card Q&A.
2026-08-26 02:08:33 +08:00
SeleiXi
5c45c38e4a fix: make ask questions card deterministic 2026-08-26 02:08:33 +08:00
SeleiXi
4c9df02a97 feat: add context-aware ask questions mode 2026-08-26 02:07:39 +08:00
Bingxi Zhao (Frank)
ce3532b7f8 fix(mastery): validate guarded finishes before streaming 2026-08-26 01:52:26 +08:00
XZH
b4bbe20e87 fix(mastery): redirect plain-text quizzes to cards 2026-08-26 01:52:26 +08:00
Bingxi Zhao
2620180ea1 Merge pull request #1007 from ZQR1101/fix/mastery-composer-clarifying
fix(mastery): don't freeze choice gates on clarifying composer text
2026-08-26 01:52:16 +08:00
Bingxi Zhao
3016e1575d Merge pull request #772 from KevinXia69/codex/fix-context-compaction-budgets
fix: bound conversation compaction budgets
2026-08-26 01:40:08 +08:00
Bingxi Zhao
e56bc10b3e Merge pull request #977 from aiheluo/fix/kimi-k3-temperature
fix(llm): drop temperature for bare Kimi model ids (k3) on the coding endpoint
2026-08-26 01:39:17 +08:00
Bingxi Zhao (Frank)
8525527836 fix(mastery): require explicit choice answer intent 2026-08-26 01:33:31 +08:00
ZQR1101
85602ca161 fix(mastery): don't freeze choice gates on clarifying composer text
Composer clarifying questions on a choice card were persisted as the formal
answer, after which mastery_grade could never map them to an option and the
gate stalled. Skip unreadable commits and allow a later readable pick to
recover already-stuck interactions.
2026-08-26 01:31:31 +08:00
Kevin Xia
5c6b1d5c8d fix: bound conversation compaction budgets 2026-08-26 01:30:42 +08:00
Bingxi Zhao
437efd5aa2 Merge pull request #1003 from ningkaikok/feat/native-web-search-responses
feat(llm): map web_search to native Responses tools for server-side search
2026-08-26 01:29:52 +08:00
Bingxi Zhao
1db94abc1c Merge pull request #1006 from googio/feat/serply-search
feat(search): add Serply provider with web, news and scholar modes
2026-08-26 01:28:51 +08:00
Bingxi Zhao (Frank)
d80dee48a3 fix(llm): scope bare Kimi model overrides exactly 2026-08-26 01:28:16 +08:00
Bingxi Zhao (Frank)
159edefaac fix(llm): make native web search terminal and model-scoped 2026-08-26 01:22:30 +08:00
宁凯
d9962666a8 feat(llm): map web_search to native Responses tools for server-side search
Providers whose Responses API performs web_search server-side (DeepSeek
V4, #846) declare the tool as {"type": "web_search"} instead of a
function schema, run the search mid-generation, and return web_search_call
output items with url_citation annotations.

- convert_tools(): map the web_search function tool to the native schema
  when the provider spec sets native_web_search
- parsing: synthesize a server_executed-marked web_search ToolCallRequest
  from web_search_call items and url_citation annotations across all three
  consumers (SSE, SDK stream, non-streaming), with tail-merge for
  annotations that stream after the search item completes
- convert_messages(): replay server-executed calls as web_search_call
  items and skip their function_call_output pairing
- assistant_message_with_tool_calls(): keep provider_specific_fields so
  the server_executed marker survives into the conversation history
- tool_dispatch: short-circuit server-executed calls with a stub result
  carrying the citations as sources — the local web_search tool never
  re-runs a search the provider already performed
2026-08-26 01:22:30 +08:00
Bingxi Zhao
22b70c3ab3 Merge pull request #1008 from ZQR1101/fix/tool-schema-fallback-matcher
fix(llm): stop matching bare 'tool' in schema-fallback detector
2026-08-26 01:21:54 +08:00
Bingxi Zhao (Frank)
57a2631804 fix(search): align Serply requests with documented API 2026-08-26 01:06:36 +08:00
serply
6c1a615ed1 feat(search): add Serply provider with web, news and scholar modes 2026-08-26 01:05:03 +08:00
Bingxi Zhao (Frank)
1f6fe858f1 fix(reading): isolate timed-out extension workers 2026-08-26 01:04:12 +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
XZH
88777a4421 fix(reading): bound extension action execution 2026-08-26 01:00:05 +08:00
XZH
27700d4a48 feat(reading): add safe extension protocol 2026-08-26 01:00:05 +08:00
Bingxi Zhao
f78ff1abdc Merge pull request #979 from evan188199-tech/codex/epub-bilingual-pairing
feat(reading): add explicit bilingual EPUB pairing
2026-08-26 00:58:08 +08:00
Bingxi Zhao
37e9aeb2af Merge pull request #972 from evan188199-tech/codex/upstream-reading-selectors
feat(reading): persist W3C text selectors
2026-08-26 00:48:51 +08:00
Bingxi Zhao (Frank)
5de30246bd fix(reading): make EPUB pairings durable and explicit 2026-08-26 00:43:15 +08:00
XZH
410711bf7b feat(reading): add explicit bilingual EPUB pairing 2026-08-26 00:40:50 +08:00
Bingxi Zhao (Frank)
ebe8e147f4 fix(reading): keep selector anchors coherent 2026-08-26 00:39:05 +08:00
XZH
2b09789182 fix(reading): validate selector text bounds 2026-08-26 00:36:30 +08:00
XZH
4f94c6f1f9 feat(reading): persist W3C text selectors 2026-08-26 00:35:59 +08:00
zh769394
61a32bd626 fix: improve Windows cross-platform compatibility across runner, tools, and tests
- Guard resource module import in runner server for non-POSIX platforms
- Use POSIX relative path format in ListDirTool for consistent path separators
- Specify UTF-8 encoding in Weixin channel state loading and prompt tests to avoid GBK UnicodeDecodeError
- Use as_posix() in path assertion tests for cross-platform compatibility
2026-08-26 00:29:52 +08:00
Bingxi Zhao
3dbdb3ddb3 Merge pull request #968 from evan188199-tech/codex/epub-reading-contract
feat(reading): add source-faithful EPUB contract
2026-08-26 00:28:58 +08:00