From be328d451e904a6d4fe916f1353642891762a53e Mon Sep 17 00:00:00 2001 From: Denis Oliana Date: Sat, 6 Jul 2024 18:05:28 +0200 Subject: [PATCH] enable prompt-flow even when AZURE_OPENAI_STREAM is set to true --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index aab516842f..ecebee86ea 100644 --- a/app.py +++ b/app.py @@ -353,7 +353,7 @@ async def generate(): async def conversation_internal(request_body, request_headers): try: - if app_settings.azure_openai.stream: + if app_settings.azure_openai.stream and not app_settings.base_settings.use_promptflow: result = await stream_chat_request(request_body, request_headers) response = await make_response(format_as_ndjson(result)) response.timeout = None