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

deprecate OpenAIDavinci and add OpenAILegacy #216

Merged
merged 5 commits into from
Jan 22, 2024
Merged

Conversation

FelipeAdachi
Copy link
Contributor

@FelipeAdachi FelipeAdachi commented Jan 11, 2024

OpenAI deprecated text-davinci models since Jan 4. This PR deprecates the OpenAIDavinci class in favor of OpenAILegacy, with default model of gpt-3.5-turbo-instruct, which is the recommended replacement for OpenAIDavinci's default model text-davinci-003.

This PR also updates the documentation accordingly.

This PR should be followed by example changes replacing the deprecated models.

langkit/openai/openai.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@jamie256 jamie256 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jamie256 jamie256 merged commit c58c0e9 into main Jan 22, 2024
12 checks passed
@jamie256 jamie256 deleted the dev/felipe/openai-legacy branch January 22, 2024 18:45
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

Successfully merging this pull request may close these issues.

2 participants