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

OpenAIEndpointModelType that replaces the OpenAIModelType so only compatible models are available for each method #115

Open
marcoboerner opened this issue Sep 1, 2023 · 0 comments

Comments

@marcoboerner
Copy link

The current OpenAIModelType model enum and methods that have models as parameters could easily cause errors as any model could be chosen for any of those methods. By adding the new OpenAIEndpointModel type that corresponds to the compatibility list in the OpenAI docs, it’s much easier to select the fitting model.
The new type does contain duplicate model strings, which is intended to make it easier to maintain.

Those suggested changes are added (with the new OpenAI models that are missing as well) to the #107 PR (fully backward compatible by wrapping the new methods and adding @available to the old ones.

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

1 participant