fix(ChatKnowledge): Fix chat knowledge error (#1753)

This commit is contained in:
Fangyin Cheng 2024-07-29 11:13:57 +08:00 committed by GitHub
parent 167d972093
commit 55c8b39e2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -387,7 +387,7 @@ async def chat_completions(
headers=headers,
media_type="text/event-stream",
)
elif domain_type is not None:
elif domain_type is not None and domain_type != "Normal":
return StreamingResponse(
chat_with_domain_flow(dialogue, domain_type),
headers=headers,

View File

@ -15,3 +15,4 @@ pre-commit
# Type checking
mypy==1.7.0
httpx
vcrpy<6.0.0