LiteLLM Provider¶
Below is how you can instantiate LiteLLM as a provider. LiteLLM supports 100+ models from OpenAI, Cohere, Anthropic, HuggingFace, Meta and more. You can find more information about models available here.
All feedback functions listed in the base LLMProvider class can be run with LiteLLM.
trulens_eval.feedback.provider.litellm.LiteLLM
¶
Bases: LLMProvider
Out of the box feedback functions calling LiteLLM API.
Create an LiteLLM Provider with out of the box feedback functions.
Example
from trulens_eval.feedback.provider.litellm import LiteLLM
litellm_provider = LiteLLM()