Skip to main content

A wrapper for litellm with TAIDE configuration support

Project description

README.md

botrun_litellm

A wrapper for litellm with TAIDE configuration support.

Installation

pip install botrun_litellm

Usage

from botrun_litellm import botrun_litellm_completion

response = botrun_litellm_completion(
    messages=[{"role": "user", "content": "Hello!"}],
    model="openai/gpt-4"
)

Usage 2

from botrun_litellm import botrun_litellm_completion

response = botrun_litellm_completion(
    messages=[{"role": "user", "content": "Hello!"}],
    model="taide/openai/Llama3-TAIDE-LX-70B-Chat",
    api_base: "base_url",
    api_key: "api_key"

)

Environment Variables

The following environment variables are required:

  • TAIDE_BASE_URL: Base URL for TAIDE API
  • TAIDE_API_KEY: API key for TAIDE

Supported models

  • "taide/openai/Llama-3.1-405B-Instruct-FP8",
  • "taide/openai/Llama-3.1-70B",
  • "taide/openai/Llama-3.1-Nemotron-70B-Instruct",
  • "taide/openai/Llama3-TAIDE-LX-70B-Chat",
  • "taide/openai/TAIDE-LX-70B-Chat"

License

MIT License

export requirements.txt

poetry export -f requirements.txt --output requirements.txt --without-hashes --without-urls

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

botrun_litellm-0.2.4.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

botrun_litellm-0.2.4-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file botrun_litellm-0.2.4.tar.gz.

File metadata

  • Download URL: botrun_litellm-0.2.4.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for botrun_litellm-0.2.4.tar.gz
Algorithm Hash digest
SHA256 6f10ec93ee42f491368ff2f2d3c0178295ecf5b278b43e44c2f1206748cefb99
MD5 bc635d46c6e56c90496d03b426c4de47
BLAKE2b-256 24be2f71afa3437e22baa03bc40772d774d21fb8d534d3fcc8c3ac5ce36ebd88

See more details on using hashes here.

File details

Details for the file botrun_litellm-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: botrun_litellm-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for botrun_litellm-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b4aec35dfa7bdc3fa19c2c092b673aecb22b06d96ace1e0b071e84d2960cce14
MD5 55bd55870444392e8e19cef57a17125a
BLAKE2b-256 1f09e579af600ab5845ab4e6eb7dc959ac96a8a10590814ff595d64c10b9c969

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page