Skip to content

Commit

Permalink
fix(ChatKnowledge): Fix chat knowledge error (#1753)
Browse files Browse the repository at this point in the history
  • Loading branch information
fangyinc authored Jul 29, 2024
1 parent 167d972 commit 55c8b39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dbgpt/app/openapi/api_v1/api_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion requirements/dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ aioresponses
pre-commit
# Type checking
mypy==1.7.0
httpx
httpx
vcrpy<6.0.0

0 comments on commit 55c8b39

Please sign in to comment.