* fix(knowledge): reject invalid JSON uploads before async parse Validate .json payloads at HTTP upload/replace time with the same gate used by the simple JSON reader, so JSONC or truncated files fail with HTTP 400 instead of after document-process retries. CreateKnowledgeFromFile itself skips the gate so datasource sync and IM still create a knowledge row that fails in async parse. Signed-off-by: xiaojunxiang <xiaojunxiang@kingsoft.com> * fix(knowledge): localize JSON upload validation messages The upload queue shows the backend message verbatim and the rest of the upload handler speaks Chinese. Map ValidateJSONContent's errors (now sentinels with unchanged text, still shared with the async JSON reader) to Chinese messages at the upload/replace boundary. --------- Signed-off-by: xiaojunxiang <xiaojunxiang@kingsoft.com> Co-authored-by: wizardchen <wizardchen@tencent.com> Co-authored-by: lyingbug <xiayula2014@gmail.com> |
||
|---|---|---|
| .. | ||
| chunker | ||
| docparser | ||
| web_fetch | ||
| web_search | ||