Fix: validation of readonly fields. (#6144)

### What problem does this PR solve?

#6104

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu
2025-03-17 12:22:49 +08:00
committed by GitHub
parent 3e19044dee
commit 37f3486483
4 changed files with 15 additions and 3 deletions

View File

@ -67,6 +67,7 @@ class Chunk(BaseModel):
raise ValueError("Each sublist in positions must have a length of 5")
return value
@manager.route("/datasets/<dataset_id>/documents", methods=["POST"]) # noqa: F821
@token_required
def upload(dataset_id, tenant_id):