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.4

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.4
File Size Uploaded
modeltoolbox_provider-0.2.4.tar.gz 10.7 kB Details

Built distribution (wheel)

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

Total release size: 24.2 kB

Release files / modeltoolbox_provider-0.2.4.tar.gz

Download URL modeltoolbox_provider-0.2.4.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b41a835ebfc24053272547534756f7460232c77ba428355199f361a596044495
BLAKE2b-256 checksum
How to use checksums
3847a9ac826e4243e39885c148c17fd6bfe12dc056d82b761b57d88967bfc3c2
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.4-py3-none-any.whl

Download URL modeltoolbox_provider-0.2.4-py3-none-any.whl
Size 13.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66debcf731dbb230dd046962ccca11658e7464d4ed1a10d4ded050d29581e1a5
BLAKE2b-256 checksum
How to use checksums
ed4bfcca3dee45871003079592846f672227492b56124d5a73398adaf60682da
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

0.2.5

2 release files

This release

0.2.4 This release

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