mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-05-14 16:59:03 +08:00
fix: query empty not allow (#255)
This commit is contained in:
parent
5ca88a4fd9
commit
ccd80653ff
@ -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…
x
Reference in New Issue
Block a user