Kaynağa Gözat

fix: query empty not allow (#255)

tags/0.3.2
John Wang 2 yıl önce
ebeveyn
işleme
ccd80653ff
No account linked to committer's email address
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4
    0
      api/services/completion_service.py

+ 4
- 0
api/services/completion_service.py Dosyayı Görüntüle

@@ -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…
İptal
Kaydet