Skip to content

Commit 55c8b39

Browse files
authored
fix(ChatKnowledge): Fix chat knowledge error (#1753)
1 parent 167d972 commit 55c8b39

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: dbgpt/app/openapi/api_v1/api_v1.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ async def chat_completions(
387387
headers=headers,
388388
media_type="text/event-stream",
389389
)
390-
elif domain_type is not None:
390+
elif domain_type is not None and domain_type != "Normal":
391391
return StreamingResponse(
392392
chat_with_domain_flow(dialogue, domain_type),
393393
headers=headers,

Diff for: requirements/dev-requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ aioresponses
1414
pre-commit
1515
# Type checking
1616
mypy==1.7.0
17-
httpx
17+
httpx
18+
vcrpy<6.0.0

0 commit comments

Comments
 (0)