fix(api): Some params were ignored when creating empty Datasets through API (#17932)

This commit is contained in:
Jasonfish 2025-04-14 10:24:01 +08:00 • committed by GitHub
commit 1f722cde22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 115 additions and 20 deletions

View file

@ -398,7 +398,7 @@ class DatasetDocumentSegmentBatchImportApi(Resource):
indexing_cache_key = "segment_batch_import_{}".format(job_id)
cache_result = redis_client.get(indexing_cache_key)
if cache_result is None:
raise ValueError("The job is not exist.")
raise ValueError("The job does not exist.")
return {"job_id": job_id, "job_status": cache_result.decode()}, 200