-
Notifications
You must be signed in to change notification settings - Fork 22
Refactor database interactions to use AsyncSession and switch to async cache #16
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
Conversation
| input_tokens=input_tokens, | ||
| output_tokens=output_tokens, | ||
| ) | ||
| finally: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't we need finally?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I missed that. Let me create a asynccontextmanager function to handle the close. And we could reuse it.
|
Overall LGTM, once check the last few comments, I think it is good to go |
No description provided.