You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your implementations for pinging the API and ETLing the I/O are inefficient and would result in a slowdown for simpleaichat.
For Anthropic, TogetherAI, Aleph Alpha we always initalize a client and follow that with a completion call. [TODO Action: Remove the need to initialize the Client before every completion call]. If we do 100 completion calls we would have initialize the client 100 times
Are we doing anything fancy in here besides just instantiating class variables? Is this what's adding latency?
The logging object is initialized for each completion call - making it thread safe and logging information specific to that call (e.g. model name details), so just make sure we maintain that.
ishaan-jaff
changed the title
[Optimize LiteLLM] - Remove Redundant Client Initaliaation in completion calls
[Optimize LiteLLM] - Remove Redundant Client Initalization in completion calls
Sep 4, 2023
What's the problem? (if there are multiple - list as bullet points)
see:minimaxir/simpleaichat#74
The text was updated successfully, but these errors were encountered: