OpenAI-API-dotnet icon indicating copy to clipboard operation
OpenAI-API-dotnet copied to clipboard

Error converting value "gpt-3.5-turbo-0613" to type 'OpenAI_API.Models.Model

Open DmitryBorodiy opened this issue 2 years ago • 3 comments

Error converting value "gpt-3.5-turbo-0613" to type 'OpenAI_API.Models.Model'. Path 'model', line 5, position 31. I have no idea how I can fix this exception.

DmitryBorodiy avatar Nov 24 '23 22:11 DmitryBorodiy

Hmm, can you give me some more context about where this is coming from? Also I just pushed a new version 1.8 with support for additional models, so maybe try that?

OkGoDoIt avatar Dec 07 '23 00:12 OkGoDoIt

It's happens only when I build UWP app with .NET Native.

DmitryBorodiy avatar Dec 15 '23 14:12 DmitryBorodiy

Perhaps you're somehow using a different JSON deserializer? The Model type is strongly typed but it has an implicit conversion from a string, so when parsing a JSON reply from the API it should converted implicitly. It sounds like that might not be happening for some reason.

But I'm just guessing, perhaps you can give me a more detailed stack trace so I can understand where this is happening?

I'm actually not familiar with .net native and it's not a scenario I have tested, maybe you can give me some more details about your setup so I can try it myself.

OkGoDoIt avatar Dec 20 '23 02:12 OkGoDoIt