LiteLLM Enterprise

0.1.37 · active · verified Sat Apr 11

LiteLLM Enterprise is a Python package designed to provide enterprise-grade features and functionality on top of the core LiteLLM library. It currently wraps and re-exports much of the base LiteLLM functionality. The package is at version 0.1.37 and appears to be in an early development stage, with its release cadence likely tied to the rapidly evolving LiteLLM ecosystem.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates a basic LLM completion call using the `litellm_enterprise` package. Ensure `OPENAI_API_KEY` is set in your environment. The functionality mirrors that of the core `litellm` package due to its re-export mechanism.

import os
from litellm_enterprise import completion

os.environ['OPENAI_API_KEY'] = os.environ.get('OPENAI_API_KEY', 'sk-your-openai-key')

try:
    response = completion(
        model="gpt-3.5-turbo",
        messages=[{"role": "user", "content": "What is LiteLLM?"}]
    )
    print(response.choices[0].message.content)
except Exception as e:
    print(f"An error occurred: {e}")

view raw JSON →