hexthedev / OpenAi-Api-Unity

Integration for the OpenAi Api in Unity
MIT License
327 stars 71 forks source link

instruct brains return error code NotFound #31

Closed KreuzKummelll closed 3 years ago

KreuzKummelll commented 3 years ago

instruct_curie_beta and instruct_davinci_beta return error NotFound

hexthedev commented 3 years ago

The instruct series was created after my last commit to this repo, so it's possible that the urls used automatically in the library are now wrong.

I will take a look at the current state of the API. There may have been other updates, and let you know if I find the issue.

hexthedev commented 3 years ago

@KreuzKummelll: Hey, this took me longer to get to than I thought. I've taken a look, and I've found the problem. The engine ids have changed from instruct-curie-beta format, to curie-instruct-beta. I will fix this and make a release shortly.

However, I think this is probably a bad design as any changes to these things OpenAI's end will cause problems. At some point, I will come up with a better way to do this as to avoid these kinds of issues.

I'll let you know when the release is ready.

hexthedev commented 3 years ago

@KreuzKummelll: I've made a new release with the fixes https://github.com/hexthedev/OpenAi-Api-Unity/releases/tag/v0.1.11f1

If it works, please let me know. I'm currently unable to test because my beta ran out. I'll reopen the issue if it's still a problem.