Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.05 KB

README.md

File metadata and controls

46 lines (32 loc) · 1.05 KB

LiteLLM Plugin for Steamship for OpenAI compatibility

This plugin provides access to LiteLLM's language model translation to OpenAI format for text generation.

Usage

Use of this plugin is subject to individual models' terms of use, including but not limited to:

Examples

Basic

litellm = steamship.use_plugin("litellm")
task = litellm.generate(text=prompt)
task.wait()
for block in task.output.blocks:
    print(block.text)

With Runtime Parameters

litellm = steamship.use_plugin("litellm")
task = litellm.generate(text=prompt, options={"stop": ["6", "7"]})
task.wait()
for block in task.output.blocks:
    print(block.text)

Cost

Pricing page

Developing this Plugin

Clone this repository, then set up a Python virtual environment with:

python -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt
python -m pip install -r requirements.dev.txt