fix: query empty not allow

pull/255/head
John Wang 3 years ago
parent 5ca88a4fd9
commit 46e8d0a6b4

@ -33,6 +33,10 @@ class CompletionService:
# is streaming mode
inputs = args['inputs']
query = args['query']
if not query:
raise ValueError('query is required')
conversation_id = args['conversation_id'] if 'conversation_id' in args else None
conversation = None

Loading…
Cancel
Save