Re:Show HN: Litellm – simple library to standardize OpenAI, ...
by detente18 on Thursday July 27, 2023 @09:09AM
(#36892872)
You can use tenacity for retries and wouldn't you want to cache the request / response around the endpoint instead of the gpt call -> that's what we ended up doing.
Streaming output and function-calling support is interesting
Re:Show HN: Litellm – simple library to standardize OpenAI, ...
by d4rkp4ttern on Saturday August 05, 2023 @11:36PM
(#37018764)
Could you elaborate on this — “wouldn’t want to cache around the endpoint instead of GPT call”. Just want to see if I’m missing an important consideration here
Re:Show HN: Litellm – simple library to standardize OpenAI, ...
by detente18 on Saturday August 12, 2023 @05:48PM
(#37104544)
You're probably calling openai from a backend server. If you're making the call because a user asked a question -> your endpoint received it -> did some processing -> called openai -> returned the response,
why would you cache the openai call instead of the endpoint that's receiving the user call?
Retries w exponential backoff, Caching, Streaming output, Function-calling support