🤖 LiteLLM

Proxy Server to call 100+ LLMs in the OpenAI format

★ 15.5k AI LLM

Homepage · Source code

Author: Berrie AI, Inc · License: MIT

Version: 1.56.4 · Updated

About LiteLLM

Call all LLM APIs using the OpenAI format [Bedrock, Huggingface, VertexAI, TogetherAI, Azure, OpenAI, Groq etc.]

preview


Features

  • Translate inputs to provider's completion, embedding, and image_generation endpoints
  • Consistent output, text responses will always be available at ['choices'][0]['message']['content']
  • Retry/fallback logic across multiple deployments (e.g. Azure/OpenAI) - Router
  • Set Budgets & Rate limits per project, api key, model LiteLLM Proxy Server (LLM Gateway)

Environment variables

View environment variables
PROJECT
  litellm
DOMAIN
  stack.localhost
LITELLM_MASTER_KEY
  "sk-1234" # Your master key for the proxy server. Can use this to send /chat/completion requests etc
LITELLM_SALT_KEY
  "sk-XXXXXXXX" # Can NOT CHANGE THIS ONCE SET - It is used to encrypt/decrypt credentials stored in DB. If value of 'LITELLM_SALT_KEY' changes your models cannot be retrieved from DB
OPENAI_API_KEY
  ""
OPENAI_API_BASE
  ""
COHERE_API_KEY
  ""
OR_SITE_URL
  ""
OR_APP_NAME
  "LiteLLM Example app"
OR_API_KEY
  ""
AZURE_API_BASE
  ""
AZURE_API_VERSION
  ""
AZURE_API_KEY
  ""
REPLICATE_API_KEY
  ""
REPLICATE_API_TOKEN
  ""
ANTHROPIC_API_KEY
  ""
INFISICAL_TOKEN
  ""

An alternative to

  1. OpenAI  ChatGPT

Related

  1. Ollama  Open WebUI

    A user-friendly interface for AI chat

    ★ 61.6k llm ai rag chatbot
  2. 🤯  LobeChat

    Open-source, modern-design AI chat framework

    ★ 52.3k llm ai rag chatbot
  3. Ollama  Ollama

    The easiest way to get up and running with large language models

    ★ 109k llm ai
  4. 🤖  AnythingLLM

    The all-in-one AI app you were looking for

    ★ 27.8k llm ai rag chatbot