Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DmitryBorodiy opened this issue Nov 24, 2023 · 3 comments

Comments

@DmitryBorodiy
Copy link

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.

@OkGoDoIt
Copy link
Owner

OkGoDoIt commented Dec 7, 2023

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?

@DmitryBorodiy
Copy link
Author

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

@OkGoDoIt
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants