Skip to content

Access a variety of LLMs which are supported by the LiteLLM library

Notifications You must be signed in to change notification settings

steamship-core/litellm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Access a variety of LLMs which are supported by the LiteLLM library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%