瀏覽代碼

fix: query empty not allow (#255)

tags/0.3.2
John Wang 2 年之前
父節點
當前提交
ccd80653ff
沒有連結到貢獻者的電子郵件帳戶。
共有 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…
取消
儲存