From 55c8b39e2ee7f2206522e07bce6adb1b4102da56 Mon Sep 17 00:00:00 2001 From: Fangyin Cheng Date: Mon, 29 Jul 2024 11:13:57 +0800 Subject: [PATCH] fix(ChatKnowledge): Fix chat knowledge error (#1753) --- dbgpt/app/openapi/api_v1/api_v1.py | 2 +- requirements/dev-requirements.txt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dbgpt/app/openapi/api_v1/api_v1.py b/dbgpt/app/openapi/api_v1/api_v1.py index ac2916994..43740b636 100644 --- a/dbgpt/app/openapi/api_v1/api_v1.py +++ b/dbgpt/app/openapi/api_v1/api_v1.py @@ -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, diff --git a/requirements/dev-requirements.txt b/requirements/dev-requirements.txt index 364ce239c..9e9d94c6c 100644 --- a/requirements/dev-requirements.txt +++ b/requirements/dev-requirements.txt @@ -14,4 +14,5 @@ aioresponses pre-commit # Type checking mypy==1.7.0 -httpx \ No newline at end of file +httpx +vcrpy<6.0.0 \ No newline at end of file