Prompt Chain

Integrate LLM Providers with LiteLLM

Provider Litellm is a promptfoo example demonstrating how to integrate and test LiteLLM as a provider for multi-model LLM workflows and evaluations.

Works with litellm

62
Spark score
out of 100
Updated 3 days ago
Version code-scan-action-0.1

Add to Favorites

Why it matters

Connect to various Large Language Models (LLMs) using the LiteLLM library. This asset helps in abstracting away the complexities of different LLM APIs, allowing for easier integration and experimentation.

Outcomes

What it gets done

01

Abstract LLM API calls through a unified interface.

02

Facilitate switching between different LLM providers.

03

Enable programmatic interaction with various LLM services.

Install

Add it to your toolbox

Run in your project directory:

curl -fsSL https://spark.entire.vc/get/pfoo-provider-litellm | bash

Capabilities

What this chain does

Abstract LLM API

Abstract LLM API calls through a unified interface.

Facilitate switching between

Facilitate switching between different LLM providers.

Enable programmatic interaction

Enable programmatic interaction with various LLM services.

Overview

Provider Litellm

What it does

Provider Litellm is an example configuration from the promptfoo repository that demonstrates how to integrate LiteLLM as a provider. It shows the setup and configuration patterns needed to route prompts through LiteLLM's unified interface within promptfoo's testing framework.

How it connects

Use this example when you need a reference implementation for configuring LiteLLM as a provider in promptfoo, or when you're setting up multi-provider LLM testing workflows and want to understand the integration requirements between these two tools.

Source README

You can run this example with:

Discussion

Questions & comments · 0

Sign In Sign in to leave a comment.