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.55k stars 2.41k forks source link

Permissions required for connecting an endpoint to the frontend #1006

Open brainlie opened 1 month ago

brainlie commented 1 month ago

Describe the bug I have created an endpoint using azure ai studio promptflow, deploying it as an endpoint. After connecting the endpoint to the frontend using environment variables, I am getting an error on the chatbot response: "Execution failure in 'search_question_from_indexed_docs': (Exception) Exception occured in search_function_construction."

Screenshot 2024-07-15 at 4 40 11 PM

These are my environment variables for my webapp Screenshot 2024-07-15 at 4 41 14 PM

Is this related to identities? Or anything to do with CORS?

wheatsnackbread commented 1 month ago

Have you double-checked that USE_PROMPTFLOW is set to TRUE, and that AZURE_OPENAI_STREAM is set to FALSE?