Commit Graph

15 Commits

Author SHA1 Message Date
姚章浩 d6a781ba5b fix(dingtalk): send answer language via Accept-Language header
WeKnora's system prompt hard-enforces 'ALWAYS respond in {{language}}',
fed by its Language middleware (WEKNORA_LANGUAGE env -> Accept-Language
header -> zh-CN fallback). The previous localizedQuery() prompt prefix
lost against that instruction, so a user-set 'en' preference still got
Chinese answers on English questions.

- AgentChatRequest.Locale is transmitted as the Accept-Language header
  (never in the JSON body); WeKnora maps it to the prompt language
- 'auto' detects the query script client-side (latin->en, Han->zh-CN,
  kana->ja, Hangul->ko); es is never auto-guessed
- unset/unknown locale sends no header, preserving prior server behavior
- drop localizedQuery prompt prefixes entirely
2026-09-14 16:58:52 +08:00
姚章浩 bfa1b1b25f feat(dingtalk): add reasoning mode and support evidence 2026-09-10 16:24:56 +08:00
姚章浩 0798a2dac7 feat(dingtalk): stabilize multimodal answer workflows 2026-09-09 13:57:43 +08:00
姚章浩 2d9490f424 feat: apply per-user answer language 2026-08-13 12:50:07 +08:00
姚章浩 5c35a49486 fix: recreate stale WeKnora sessions once 2026-08-13 12:34:05 +08:00
姚章浩 0a3f62618e feat: sync DingTalk QA to Notable question table 2026-07-23 14:38:50 +08:00
姚章浩 5e0694835a feat: add DingTalk directory-backed session titles 2026-07-23 10:55:25 +08:00
姚章浩 774ccd9454 feat: wire coverage support notifications 2026-07-22 12:48:30 +08:00
姚章浩 98295ee79a feat: track DingTalk delivery outcomes 2026-07-21 12:53:40 +08:00
姚章浩 32b76b84cb fix: address message audit review findings 2026-07-21 10:52:59 +08:00
姚章浩 d857853ea3 feat: add message audit foundation 2026-07-21 10:42:28 +08:00
姚章浩 65967118a0 feat: expose safe WeKnora progress events 2026-07-20 23:10:08 +08:00
姚章浩 f48f82bb08 feat: stream WeKnora answers through QA 2026-07-20 22:35:13 +08:00
姚章浩 ea54b229ee feat: add DingTalk picture agent QA 2026-07-20 18:21:47 +08:00
姚章浩 a8cb26203b feat: initialize external DobotAI agent gateway 2026-07-20 11:47:37 +08:00