mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-22 03:41:43 +00:00
fix(ChatKnowledge): Fix chat knowledge error (#1753)
This commit is contained in:
parent
167d972093
commit
55c8b39e2e
@ -387,7 +387,7 @@ async def chat_completions(
|
|||||||
headers=headers,
|
headers=headers,
|
||||||
media_type="text/event-stream",
|
media_type="text/event-stream",
|
||||||
)
|
)
|
||||||
elif domain_type is not None:
|
elif domain_type is not None and domain_type != "Normal":
|
||||||
return StreamingResponse(
|
return StreamingResponse(
|
||||||
chat_with_domain_flow(dialogue, domain_type),
|
chat_with_domain_flow(dialogue, domain_type),
|
||||||
headers=headers,
|
headers=headers,
|
||||||
|
@ -15,3 +15,4 @@ pre-commit
|
|||||||
# Type checking
|
# Type checking
|
||||||
mypy==1.7.0
|
mypy==1.7.0
|
||||||
httpx
|
httpx
|
||||||
|
vcrpy<6.0.0
|
Loading…
Reference in New Issue
Block a user