Преглед на файлове

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…
Отказ
Запис