OpenAI-Unity icon indicating copy to clipboard operation
OpenAI-Unity copied to clipboard

JSON Mode

Open chrisecoleman opened this issue 2 years ago • 8 comments

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

chrisecoleman avatar Dec 10 '23 19:12 chrisecoleman

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

srcnalt avatar Jan 06 '24 22:01 srcnalt

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.

M4RITH avatar Jan 12 '24 15:01 M4RITH

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

jhinpan avatar Feb 08 '24 20:02 jhinpan

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

redclock avatar Feb 29 '24 14:02 redclock

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: @.***>

M4RITH avatar Feb 29 '24 14:02 M4RITH

@M4RITH sorry, what do you mean?

redclock avatar Feb 29 '24 14:02 redclock

@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

M4RITH avatar Feb 29 '24 15:02 M4RITH

I think it's a different issue

redclock avatar Feb 29 '24 15:02 redclock