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