Skip to content

Commit

Permalink
enable prompt-flow even when AZURE_OPENAI_STREAM is set to true
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Oliana committed Jul 6, 2024
1 parent 297b838 commit be328d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit be328d4

Please sign in to comment.