microsoft / sample-app-aoai-chatGPT

Sample code for a simple web chat experience through Azure OpenAI, including Azure OpenAI On Your Data.
MIT License
1.42k stars 2.13k forks source link

Cannot use a deployed prompt flow in web app #934

Open Tanishk1 opened 1 week ago

Tanishk1 commented 1 week ago

When I set the below environment variables to use a deployed prompt flow, it doesn't work in the web app as the web app is deployed normally as if it ignores these specific environment variables (other environment variables work). Is there anything else I need to do for my prompt flow to work?

Chat with data: Prompt flow API

USE_PROMPTFLOW=True PROMPTFLOW_ENDPOINT=redacted PROMPTFLOW_API_KEY=redacted PROMPTFLOW_RESPONSE_TIMEOUT=120 PROMPTFLOW_REQUEST_FIELD_NAME=query PROMPTFLOW_RESPONSE_FIELD_NAME=reply PROMPTFLOW_CITATIONS_FIELD_NAME=documents