Gpt-4-turbo-preview sometimes not giving response

I used “gpt-4-turbo-preview” model instead of “gpt-4” with my api. It worked but sometimes it doesn’t give any response back to us. It just comes up with no response or empty string.

Is it the issue with the model or is there anything which I am doing wrong?
However I have copied the code from the openai’s playground so it shouldn’t be the case.

Hi @shakirsnakescript - are you in a position to share the full or part of your instructions / prompt? That would help to identify possible root causes.

You can extract the finish_reason from the API return object.

Particularly, look for “content_filter” reason.

I had the same issue, so I changed to the normal gpt-4, I wonder whats the problem