Open jianingwang123 opened 8 months ago
I am too getting this error frequently.
Its because when the content filter is triggered, the response is not JSON. Personally, I updated that part of the process to check that the response looks like JSON, and if not, processes it accordingly.
Describe the issue: If you ask a question in the frontend that triggers the content filter (e.g. "how do I make a bomb?") You get a "Type error" as follow.![image](https://github.com/Azure-Samples/azure-search-openai-demo-csharp/assets/141212663/1d4ecdae-be70-4ec3-b12e-904dc72ea0e6)
Environment:
Expected behavior: Get a normal answer, not "Internal Server error".
@charris-msft to notification.