Commit Graph

1449 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.
v1.6.0
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
72734fa130 Merge pull request #981 from evan188199-tech/codex/release-tag-guards
ci: ignore non-version release tags
2026-08-26 02:35:37 +08:00
Bingxi Zhao (Frank)
6f05db5714 fix(session): preserve durable quiz followup context 2026-08-26 02:34:40 +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
32f82dcfb8 feat(knowledge): expose bounded web sources in detail view 2026-08-26 02:26:58 +08:00
XZH
0d8b734a76 feat(knowledge): add web source sync 2026-08-26 02:26:58 +08:00
XZH
8c70283278 ci: ignore non-version release tags 2026-08-26 02:26:57 +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
18acf75309 Merge pull request #776 from SeleiXi/feat/ask-questions-capability
feat(chat): add AskQuestions mode for contextual clarification
2026-08-26 02:25:05 +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
3b288cdbd0 Merge pull request #1002 from evan188199-tech/codex/fix-mastery-plain-text-quiz
fix(assessment): redirect plain-text mastery quizzes to cards (#941)
2026-08-26 02:07:09 +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
d86763af8a Merge pull request #975 from evan188199-tech/codex/fix-mastery-unicode-display
fix(chat): decode dense non-ASCII unicode escapes for display
2026-08-26 01:39:40 +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
90876c6bc2 Merge pull request #991 from evan188199-tech/codex/upstream-reader-outline
feat(reading): add persistent document outline and in-page heading navigation
2026-08-26 01:34:02 +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 (Frank)
20f95999c3 fix(chat): strip decoded invisible unicode controls 2026-08-26 01:30:03 +08:00
XZH
40671bfa50 fix(chat): decode dense non-ASCII unicode escapes for display 2026-08-26 01:30:03 +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)
37f56de042 fix(reading): isolate malformed extension catalogs 2026-08-26 01:27:49 +08:00
aiheluo
2d91e2cc73 fix(agentic): honor provider spec model_overrides in build_completion_kwargs 2026-08-26 01:25:24 +08:00
aiheluo
f30913cce8 fix(llm): drop temperature for bare Kimi model ids (k3) on the coding endpoint 2026-08-26 01:25:24 +08:00
Bingxi Zhao (Frank)
28c0f7d295 fix(reading): preserve annotation offsets around heading anchors 2026-08-26 01:24:22 +08:00
Bingxi Zhao (Frank)
2a8617008f fix(reading): keep heading anchors through highlights 2026-08-26 01:24:22 +08:00
XZH
0e7ccc3ae3 fix(reading): separate outline views and stabilize heading jumps 2026-08-26 01:24:22 +08:00
XZH
1150fcecce feat(reading): add persistent document outline 2026-08-26 01:24:22 +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