-
Notifications
You must be signed in to change notification settings - Fork 4.3k
-
Hello,
I have recently captured a profile for my service and I see that instantiating Openai client consumes are around 16% of CPU. In order to reduce this overhead I am hoping if I can instantiate the client once at the module level and reuse it across all requests. Is this possible. If yes, are there any cons of doing so?
imageBeta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment