voicerun_completions

A unified Python library for LLM chat completions with support for multiple providers (Anthropic, OpenAI, Google, Alibaba). Built for use with VoiceRun agents, it provides a consistent interface for generating chat completions with features like streaming, tool calling, and automatic retries.

Version: 0.3.5

Installation#

Prerequisites#

  • Python 3.12+
  • uv (recommended) or pip

If you do not have a uv virtual environment, you can create one with:

uv venv

Note: We recommend using uv to install the package due to the incredible speed of the package manager. The package can still be installed via pip directly, but it will be slower.

Via uv (pyproject.toml)#

Add voicerun-completions to your pyproject.toml dependencies:

dependencies = [ "voicerun-completions", ]

Then install:

uv sync

Via pip#

pip install voicerun_completions

Next Steps#

After installation, check out the Basic Usage.

overviewpythonpipuv