Unverified Commit ccd80653 authored by John Wang's avatar John Wang Committed by GitHub

fix: query empty not allow (#255)

parent 5ca88a4f
...@@ -33,6 +33,10 @@ class CompletionService: ...@@ -33,6 +33,10 @@ class CompletionService:
# is streaming mode # is streaming mode
inputs = args['inputs'] inputs = args['inputs']
query = args['query'] query = args['query']
if not query:
raise ValueError('query is required')
conversation_id = args['conversation_id'] if 'conversation_id' in args else None conversation_id = args['conversation_id'] if 'conversation_id' in args else None
conversation = None conversation = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment