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

migrate to openai beta #96

Merged
merged 7 commits into from
Oct 14, 2023
Merged

migrate to openai beta #96

merged 7 commits into from
Oct 14, 2023

Conversation

rgbkrk
Copy link
Owner

@rgbkrk rgbkrk commented Oct 13, 2023

Migrating to the openai 1.0.0 beta: openai/openai-python#631

Steps I've gone through:

poetry add openai@latest --allow-prereleases
poetry run openai migrate

After that I tossed some of the hand crafted types that were in the repo, deferring to OpenAI's instead.

The other thing I did in here was lose the ability to do this without streaming. That's the last thing for me to fix up afaict.

Chatlab notebooks are looking good.

@rgbkrk rgbkrk force-pushed the openai-migrate-api branch from d5c98fb to dc624d9 Compare October 14, 2023 02:29
@rgbkrk rgbkrk changed the title migrate to openai beta [WIP] migrate to openai beta Oct 14, 2023
@rgbkrk rgbkrk changed the title [WIP] migrate to openai beta migrate to openai beta Oct 14, 2023
chatlab/conversation.py Outdated Show resolved Hide resolved
@rgbkrk rgbkrk requested a review from shouples October 14, 2023 14:50
@rgbkrk rgbkrk force-pushed the openai-migrate-api branch from d341030 to 09cd981 Compare October 14, 2023 15:05
Copy link
Collaborator

@shouples shouples left a comment

Choose a reason for hiding this comment

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

🚀

@rgbkrk rgbkrk merged commit 334a92b into main Oct 14, 2023
5 checks passed
@rgbkrk rgbkrk deleted the openai-migrate-api branch October 14, 2023 21:10
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