Skip to main content

ModelProvider

Provider management for ModelToolbox: runtime and provider switching.

Features

  • Provider Registry: Manage multiple LLM providers
  • Runtime Switching: Switch between providers at runtime
  • Environment Management: Provider-specific environment configuration
  • Provider Types: Support for OpenAI, Anthropic, Ollama, and custom providers

Installation

pip install modeltoolbox-provider

For development:

pip install -e "ModelProvider[dev]"

Usage

List Providers

mtb provider list

Switch Provider

mtb provider switch openai

Configure Provider

mtb provider config anthropic --api-key sk-...

Development

Run tests:

pytest ModelProvider/tests/

License

MIT

Release files for modeltoolbox-provider 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for modeltoolbox-provider 0.2.5
File Size Uploaded
modeltoolbox_provider-0.2.5.tar.gz 10.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for modeltoolbox-provider 0.2.5
File Interpreter ABI Platform
modeltoolbox_provider-0.2.5-py3-none-any.whl Python 3 none any Details

Total release size: 24.2 kB

Release files / modeltoolbox_provider-0.2.5.tar.gz

Download URL modeltoolbox_provider-0.2.5.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
937be1fe24a99ebcbc80053830cc1544cee9d9754d6230154c6077bf4997bd8b
BLAKE2b-256 checksum
How to use checksums
c6feac3b6cf9e54c7b90c1ffd3d1f6a5c030a9d09b7d5ac0740dd736d506b6e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / modeltoolbox_provider-0.2.5-py3-none-any.whl

Download URL modeltoolbox_provider-0.2.5-py3-none-any.whl
Size 13.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aa20743d405ce3aa585aab9060d379446e04d94ec3a6a9375a78db91484c9107
BLAKE2b-256 checksum
How to use checksums
900f507eda51e680a3fc3c4ac4b9f3fd62b62f6697dcda17256b7ccd2c7330a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release history Release notifications | RSS feed

This release

0.2.5 This release

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page