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

"The operation couldn’t be completed. (OpenAISwift.OpenAIError error 2.)" #110

Open
matanstau opened this issue Aug 6, 2023 · 2 comments

Comments

@matanstau
Copy link

I'm getting this error after updating to 1.4.0.
"The operation couldn’t be completed. (OpenAISwift.OpenAIError error 2.)"

Seems like other people are getting it as well
#109

@laszlotuss
Copy link

They made ChatMessage Identifiable, which combined with Codable protocol will encode the local id property to the body and OpenAI rejects it:

"message = "Additional properties are not allowed ('id' was unexpected) - 'messages.0'"
    type = "invalid_request_error""

@laszlotuss
Copy link

laszlotuss commented Aug 19, 2023

I fixed it and made a Pull Request #114

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