### What problem does this PR solve? #6387 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)tags/v0.18.0
| ) | ) | ||||
| doc = doc[0] | doc = doc[0] | ||||
| req = request.json | req = request.json | ||||
| if not req.get("content"): | |||||
| if not str(req.get("content", "")).strip(): | |||||
| return get_error_data_result(message="`content` is required") | return get_error_data_result(message="`content` is required") | ||||
| if "important_keywords" in req: | if "important_keywords" in req: | ||||
| if not isinstance(req["important_keywords"], list): | if not isinstance(req["important_keywords"], list): |