Problem with Gemini Api through OpenAI client

Hello ! I want to integrated Gemini into our AI chat assistant and in order not to waste time to coding I use OpenAI client. But client fails because together with choice messages there is not id field coming. I use gemini flash 2.0. Each content item should have an id field. Hope developers from google see this message. Thanks !
I use Laravel open ai package.

This is result when I use OpenAI client:

{"choices":[{"finish_reason":"stop","index":0,"message":{"content":"Okay Cavid, it seems I'm having a bit of d\u00e9j\u00e0 vu here! \ud83d\ude05 I had some server issues earlier, so if you've already said hello, I apologize for the repeat message. What can I do for you today? \ud83d\ude0a
","role":"assistant"}}],"created":1740352026,"model":"gemini-2.0-flash","object":"chat.completion","usage":{"completion_tokens":51,"prompt_tokens":1168,"total_tokens":1219}}  

Hi @Javid_Karimov , Welcome to the forum.

I see the id field is coming, but it’s set to None (id=None). I’ll check with the team on this. Thanks.

ok, thanks. would be great if it is solved as soon as possible

1 Like

Hi @Javid_Karimov,

Sorry for the delay in the response. This has been resolved.

Thank you!