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

#861n30d7t: Making OpenAI AutoCloseable and AutoClose #261

Merged
merged 4 commits into from
Jul 24, 2023

Conversation

victorcrrd
Copy link
Contributor

@victorcrrd victorcrrd commented Jul 20, 2023

Work towards better handling the lifetime of classes and the resources they need. In this case, this PR implements the OpenAI class (that provides a number of LLM to be easily consumed by users) as AutoCloseable and AutoClose, making sure that all OpenAIClients are closed when we are no longer using the model.

@victorcrrd victorcrrd changed the title [Draft] Making OpenAI AutoCloseable and AutoClose [Draft] #861n30d7t: Making OpenAI AutoCloseable and AutoClose Jul 20, 2023
@victorcrrd victorcrrd changed the title [Draft] #861n30d7t: Making OpenAI AutoCloseable and AutoClose #861n30d7t: Making OpenAI AutoCloseable and AutoClose Jul 20, 2023
@victorcrrd victorcrrd marked this pull request as draft July 20, 2023 13:29
@victorcrrd victorcrrd marked this pull request as ready for review July 20, 2023 14:20
Montagon
Montagon previously approved these changes Jul 20, 2023
nomisRev
nomisRev previously approved these changes Jul 20, 2023
@victorcrrd victorcrrd dismissed stale reviews from nomisRev and Montagon via e75d255 July 20, 2023 15:33
@victorcrrd victorcrrd merged commit df8d815 into main Jul 24, 2023
@victorcrrd victorcrrd deleted the cu-861n30d7t-openai-autoclose branch July 24, 2023 13:32
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.

4 participants