Преглед изворни кода

fix: query empty not allow (#255)

tags/0.3.2
John Wang пре 2 година
родитељ
комит
ccd80653ff
No account linked to committer's email address
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4
    0
      api/services/completion_service.py

+ 4
- 0
api/services/completion_service.py Прегледај датотеку

@@ -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…
Откажи
Сачувај