Registry / llm-agents / unclecode-litellm

unclecode-litellm

JSON →
library1.81.13pypypi✓ verified 84d ago

A pre-compromise fork of the original LiteLLM, providing a unified interface to call 100+ LLM providers (OpenAI, Anthropic, Cohere, Azure, Bedrock, etc.) with standardized input/output formats. Current version 1.81.13, actively maintained with monthly releases.

pip install unclecode-litellm
INSTALL
IMPORT
SIG · UNCLECODE-LITELLM
U
unclecode-litellm
llm-agentspythonv1.81.13
Install
16.1s avg
Import
6928ms
Disk
208MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.81.13 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 7.140s · 211.5MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 16.1s · import 6.716s · 194MB
208MB installed
● package 208MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

import litellm
from unclecode import litellm
The fork preserves the same top-level package name 'litellm' as the original.
completion
from litellm import completion
from litellm import completions
Function is singular 'completion', not 'completions'.

Call any provider by changing the model string (e.g., 'claude-2', 'command-nightly').

import litellm response = litellm.completion( model="gpt-4", messages=[{"role": "user", "content": "Hello world"}], api_key=os.environ.get("OPENAI_API_KEY", ""), ) print(response.choices[0].message.content)
litellm --version
Debug
Known issues
gotchaEnvironment variable LITELLM_LOG controls logging level. Not setting it may result in excessive debug output.
fix
Set os.environ['LITELLM_LOG'] = 'WARN' before importing litellm.
affects: >=1.0.0
breakingThis fork changed the default timeout from 600s to 60s. Some long-running completions may fail with timeout.
fix
Pass request_timeout=600 to completion() or set litellm.request_timeout = 600.
affects: >=1.0.0
deprecatedThe 'litellm.set_verbose' method is deprecated. Use 'litellm._turn_on_debug()' or set LITELLM_LOG=DEBUG.
fix
Use litellm._turn_on_debug() or set environment variable LITELLM_LOG=DEBUG.
affects: >=1.40.0
gotchaAnthropic models default to a max_tokens of 256. Many users expect 4096 or higher.
fix
Always set max_tokens=1024 (or desired value) when using Anthropic models.
affects: >=1.0.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'litellm'
Installed the fork under the name 'unclecode-litellm' but importing as 'unclecode_litellm' or not installing at all.
fix
Run 'pip install unclecode-litellm' and import as 'import litellm' (package name is 'litellm').
openai.RateLimitError: You exceeded your current quota
API key missing or insufficient quota. The fork does not wrap rate limit errors differently.
fix
Verify API key is set and has credits. Use litellm.utils.RateLimitError for catching.
AttributeError: module 'litellm' has no attribute 'completion'
Unclecode fork removed some aliases. Use litellm.litellm_core.completion?
fix
Import directly with 'from litellm import completion' or call litellm.completion (standard path works).
Upgrade
Version history
1.81.13latest on PyPI · released Mar 24, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
56 hits · last 30 days
node
50
OpenAI (training)
1
Resources
unclecode-litellm — pip install unclecode-litellm · libregistry