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
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,