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"
)

Environment Variables

The following environment variables are required:

  • TAIDE_BASE_URL: Base URL for TAIDE API
  • TAIDE_API_KEY: API key for TAIDE
  • DEFAULT_MODEL: (Optional) Default model to use

License

MIT License

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.1.0.tar.gz (959 Bytes view details)

Uploaded Source

Built Distribution

botrun_litellm-0.1.0-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: botrun_litellm-0.1.0.tar.gz
  • Upload date:
  • Size: 959 Bytes
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0

File hashes

Hashes for botrun_litellm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 71b0c998bfc1d4fa4b146068e41b19a0acbabdcebebf17d1397d9e9eee8a0875
MD5 effb2a8df9ba1e4805a3aaf40bc541fb
BLAKE2b-256 a409132b6c9fb6fb895590940ea6d713a8e101f18f1238ae09d1c8f6e9069e7b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for botrun_litellm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6434ec61fd94e729f00d70d8610b657b47ed6c18e6b2b58af44f8146e5c0882a
MD5 d61138f9a02c9a090f1892363110ab70
BLAKE2b-256 75636f63b77fd7781f2a040ee120415adf7fe9e000a732150a903d948de05220

See more details on using hashes here.

Supported by

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