Hello everyone! After changing the model to a new one, ‘gpt-4o-2024-08-06’, my application started to give a lot of errors during the analysis of pictures by prompt and giving an answer about what is depicted there
Facing same issue. It was alright till 26/11/2024 till 12pm. The application has gone to UAT testing and now giving the error. Tried increasing the max_tokens, although it was generating only 952 tokens, still the same error. Tried in OpenAI studio with same parameters, and it is generating incomplete JSON even there.
I have upgraded openai package to v1.55.1. I am still facing the same issue.
This is a rag chatbot that we have implemented, wherein we are making calls to gpt-4o (East US). It has to return a JSON output. I have mentioned multiple times in the prompt asking it to provide JSON output strictly. I have also mentioned the below JSON schema in the prompt
This is the content generated by playground. Although I cannot provide the full content since it is client confidential. But this is the structure
{
“query_type”: “NON_LIST”,
“response”: “The content is in Vietnamese”,
“reference_1”: {
“document_name”: “13.%___.pdf”,
“url”: “https…pdf”,
“page”: “6”
},
“reference_2”: {
“document_name”: "… (The JSON is breaking here without the ending curly braces)
EDIT 1:
Hi,
Latest update. Found that the issue is happening because of Gpt-4o throwing random content filters.
{
“query_type”: “NON_LIST”,
“response”: "**Quy định … đủ phép tháng đó (
The generated content was filtered due to triggering Azure OpenAI’s content filtering system.
Reason: This response contains content flagged as Sexual (medium)
Please modify your prompt and retry. [Learn more]
This is happening for all questions. There is no sexual content in the response. It is filtering content at random, because the above question I asked is about ‘Annual Leave Regulations’. It is working as of now if I modify the threshold for content filtering as high. But there is no violence, hate, sexual or any content deemed inappropriate.