this is the error and the code snippet.
Hi @Muhammad_Ismail, Welcome to forum!!
Are you using OpenAI compatibility to access Gemini models through OpenAI libraries??
Can you please share your piece of code to repro and debug more into the issue if possible?
Thanks