Przeglądaj źródła

Fix: add chunk api, empty content issue (#6390)

### What problem does this PR solve?

#6387

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.18.0
Kevin Hu 7 miesięcy temu
rodzic
commit
b5471978b0
No account linked to committer's email address
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      api/apps/sdk/doc.py

+ 1
- 1
api/apps/sdk/doc.py Wyświetl plik

@@ -1044,7 +1044,7 @@ def add_chunk(tenant_id, dataset_id, document_id):
)
doc = doc[0]
req = request.json
if not req.get("content"):
if not str(req.get("content", "")).strip():
return get_error_data_result(message="`content` is required")
if "important_keywords" in req:
if not isinstance(req["important_keywords"], list):

Ładowanie…
Anuluj
Zapisz