srcnalt / OpenAI-Unity

An unofficial OpenAI Unity Package that aims to help you use OpenAI API directly in Unity Game engine.
MIT License
694 stars 153 forks source link

JSON Mode #105

Open chrisecoleman opened 9 months ago

chrisecoleman commented 9 months ago

We need support for the new JSON mode in OAI recent update.

srcnalt commented 9 months ago

Hi @chrisecoleman can you elaborate what do you mean by new JSON mode? Do you mean the API changes and new API features?

M4RITH commented 8 months ago

I am getting this error. Is it related to this new JSON mode? It was working fine about 4 weeks ago.

JsonSerializationException: Could not find member 'logprobs' on object of type 'ChatChoice'. Path 'choices[0].logprobs', line 13, position 17.

jhinpan commented 7 months ago

I am meeting with the same issue, any advice on how to solve it?

redclock commented 7 months ago

I've created a pull request for this issue. Could you have a look at it? @srcnalt

M4RITH commented 7 months ago

have you tried updating open ai package?

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Yao Chunhui @.> Sent: Thursday, February 29, 2024 2:55:31 PM To: srcnalt/OpenAI-Unity @.> Cc: Naveen Nath @.>; Comment @.> Subject: Re: [srcnalt/OpenAI-Unity] JSON Mode (Issue #105)

I've created a pull request for this issue. Could you have a look at it? @srcnalthttps://github.com/srcnalt

— Reply to this email directly, view it on GitHubhttps://github.com/srcnalt/OpenAI-Unity/issues/105#issuecomment-1971316868, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AP3YWYFIBK7RYVKK46BC4IDYV5AOHAVCNFSM6AAAAABAOY6JMKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZRGMYTMOBWHA. You are receiving this because you commented.Message ID: @.***>

redclock commented 7 months ago

@M4RITH sorry, what do you mean?

M4RITH commented 7 months ago

@M4RITH sorry, what do you mean?

Sorry I am not sure if this is a completely different issue but maybe you could take a look if its similar to this? A lot of my issues were solved after updating the open ai package.

https://github.com/srcnalt/OpenAI-Unity/issues/112

redclock commented 7 months ago

I think it's a different issue