It would be very feasible to have a client.patch(...) method which gives us an OpenAI SDK client instance with the LiteLLM features enabled. Similar to what Instructor does.
Ideally, LiteLLM and Instructor would still be able to seamlessly work together.
Motivation, pitch
Ease of use, homogenized programming model. Interoperability with other libs (which accept OpenAI clients).
The Feature
It would be very feasible to have a client.patch(...) method which gives us an OpenAI SDK client instance with the LiteLLM features enabled. Similar to what Instructor does.
Ideally, LiteLLM and Instructor would still be able to seamlessly work together.
Motivation, pitch
Ease of use, homogenized programming model. Interoperability with other libs (which accept OpenAI clients).
Twitter / LinkedIn details
https://x.com/christianweyer