ai/py-litellm 1.102.1 MidnightBSD
Call all LLM APIs using the OpenAI format
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- Last update
- Commit
c47321e65f- License
- mit
- Categories
- ai, python
Description
Call all LLM APIs using the OpenAI format [Bedrock, Huggingface, VertexAI, TogetherAI, Azure, OpenAI, etc.]
LiteLLM manages:
- Translate inputs to provider's completion, embedding, and image_generation endpoints
- Consistent output, text responses will always be available at ['choices'][0]['message']['content']
- Retry/fallback logic across multiple deployments (e.g. Azure/OpenAI)
- Router
- Track spend & set budgets per project OpenAI Proxy Server
Install
Binary package:
mport install ${PYTHON_PKGNAMEPREFIX}litellm
From mports:
cd /usr/mports/ai/py-litellm && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}litellm>0:ai/py-litellm
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}maturin>=1.13<2: devel/py-maturin
Library 1
libonig.so: devel/oniguruma
Runtime 14
${PYTHON_PKGNAMEPREFIX}fastuuid>=0.14.0<1.0: devel/py-fastuuid${PYTHON_PKGNAMEPREFIX}httpx>=0.28.0<1.0.0: www/py-httpx${PYTHON_PKGNAMEPREFIX}openai>=2.20.0<3.0.0: ai/py-openai${PYTHON_PKGNAMEPREFIX}python-dotenv>=1.0.0<2.0: www/py-python-dotenv${PYTHON_PKGNAMEPREFIX}tiktoken>=0.8.0<1.0: textproc/py-tiktoken${PYTHON_PKGNAMEPREFIX}importlib-metadata>=8.0.0<9.0.0: devel/py-importlib-metadata${PYTHON_PKGNAMEPREFIX}tokenizers>=0.21.0<1.0: textproc/py-tokenizers${PYTHON_PKGNAMEPREFIX}click>=8.0.0<9.0: devel/py-click${PYTHON_PKGNAMEPREFIX}Jinja2>=3.1.6<4.0.0: devel/py-Jinja2${PYTHON_PKGNAMEPREFIX}aiohttp>=3.14.2<4.0: www/py-aiohttp${PYTHON_PKGNAMEPREFIX}pydantic2>=2.10.0<3.0.0: devel/py-pydantic2${PYTHON_PKGNAMEPREFIX}pydantic-settings>=2.14.1<3.0: devel/py-pydantic-settings${PYTHON_PKGNAMEPREFIX}jsonschema>=4.0.0<5.0.0: devel/py-jsonschema${PYTHON_PKGNAMEPREFIX}boto3>=1.43.1<2.0: www/py-boto3
Build dependencies 2
Run dependencies 15
Required by 1
Configuration
Options name: ai_litellm
| Option | Default | Description |
|---|---|---|
| DOCS | off |
- USES
- cargo python shebangfix
- Service scripts
- none
Files
distinfo 412
| File | Size | SHA256 |
|---|---|---|
| litellm-1.102.1.tar.gz | 1.8489222e+07 | 7216f46e6a1eba50f4dbb6000afdb1f5b77360eb498a4f341fc655191108cfd4 |
| rust/crates/adler2-2.0.1.crate | 13366 | 320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa |
| rust/crates/ahash-0.8.12.crate | 43413 | 5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75 |
| rust/crates/aho-corasick-1.1.5.crate | 184315 | c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba |
| rust/crates/alloca-0.4.0.crate | 4257 | e5a7d05ea6aea7e9e64d25b9156ba2fee3fdd659e34e41063cd2fc7cd020d7f4 |
| rust/crates/android_system_properties-0.1.6.crate | 5625 | ae221649c9976a6f6c56ae1facf410f3ddb33cc661c4b7b61020a912d4237fbc |
| rust/crates/anes-0.1.6.crate | 23857 | 4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299 |
| rust/crates/anstyle-1.0.14.crate | 17787 | 940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000 |
| rust/crates/arc-swap-1.9.2.crate | 81495 | c049c0be4daef0b145cb3555416b3b8ef5b7888a38aea1a3a155801fe7b0810b |
| rust/crates/async-compression-0.4.46.crate | 103073 | 4f10dafd0c8d2e51ae9a748805777613ed0bbe17bf586b76c8311f45c020a32f |
| rust/crates/async-lock-3.4.2.crate | 39826 | 290f7f2596bd5b78a9fec8088ccd89180d7f9f55b94b0576823bbbdc72ee8311 |
| rust/crates/async-trait-0.1.91.crate | 32108 | ae36dc4177970ef04fde5178d3e2429882def40e57a451f919c098f72baa6cec |
| rust/crates/atomic-waker-1.1.2.crate | 12422 | 1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0 |
| rust/crates/autocfg-1.5.1.crate | 18911 | f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53 |
| rust/crates/aws-config-1.9.0.crate | 158241 | 47712fde1909402600ccfbb26e47d482d2e58bb9e9e603d9f17e67cc435a6319 |
| rust/crates/aws-credential-types-1.3.0.crate | 21288 | e93964ffdaf57857f544be3666a5f57570bb699e934700f11b49708f61bb556e |
| rust/crates/aws-lc-rs-1.17.3.crate | 242469 | 00bdb5da18dac48ca2cc7cd4a98e533e8635a58e2361d13a1a4ee3888e0d72f1 |
| rust/crates/aws-lc-sys-0.43.0.crate | 9.662543e+06 | 43103168cc76fe62678a375e722fc9cb3a0146159ac5828bc4f0dfd755c2224c |
| rust/crates/aws-runtime-1.8.1.crate | 86255 | 7816e98ee912159f45d307e5ee6bfea4a335a55aee15f7f3e32f81a6f3000f1d |
| rust/crates/aws-sdk-sts-1.108.0.crate | 203763 | 3c72b08911d8128dd360fe1b22a9fec0fa8b552dde8ec828dcf20ef5ec974e9f |
Master sites 1
- PYPI