mirror of
https://github.com/magnus919/agent-skills.git
synced 2026-09-19 07:27:04 +03:00
Add litellm/, an operational tool skill for the LiteLLM AI gateway (proxy) and Python SDK, in the same vein as the vllm and llama-cpp engine skills. Contents: - SKILL.md: operating contract, operating loop, verification boundaries, and hard boundaries; concise core sections routing depth to references - README.md: human-facing install/use guide with required sections - references/: nine dated, source-indexed references (source index, quickstart + SDK, config & routing, keys/teams/budgets/spend, caching & guardrails, observability & logging, deployment, security & public hosting, troubleshooting), researched against litellm 1.97.0 (2026-08-22) including a live proxy probe of the health endpoints - scripts/litellm-health: read-only GET-only probe (liveliness, readiness, /v1/models, /model/info); stdlib-only Python 3.9+, --json, --help without a server - tests/test_litellm_health.py: 18 deterministic tests against a local stub HTTP server, including the observed-traffic GET-only contract - templates/proxy-config-record.md and proxy-deployment.md: fillable records; the config record is the rollback unit - evals/evals.json: schema_version 1, six output-quality cases Also regenerates tracked catalog artifacts (.claude-plugin/marketplace.json, .codex-plugin/plugin.json, llms.txt) and adds the root README catalog entry plus the skill-triggers.md index row. AI assistance: authored with AI assistance (Factory Droid) under human direction; facts verified against litellm 1.97.0 and official docs dated 2026-08-22. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
5.9 KiB
5.9 KiB
LiteLLM Operations — Source Index
Last Updated: 2026-08-22 Sources: https://docs.litellm.ai/docs/ and https://github.com/BerriAI/litellm
This index tracks the authoritative upstream sources behind the LiteLLM operational skill and the refresh procedure for keeping it current. LiteLLM releases weekly; flags, defaults, endpoint behavior, and Enterprise boundaries change between releases. Treat any claim in this skill as version-sensitive and re-verify against the installed release.
Canonical sources
Version observations (as of this refresh)
- Latest stable release: litellm 1.97.0 (published 2026-08-16), checked live on
2026-08-22 via
importlib.metadata.version("litellm"). Pre-releases v1.98.0-rc.1 and v1.99.0-dev.* were visible upstream. Stable cadence is weekly since 1.84.0. - The proxy requires the
[proxy]extra (pip install 'litellm[proxy]'); a bare install lacks websockets and friends. Python >=3.10 is required since 1.84.0. - Known packaging gotcha verified on 1.97.0: the declared fastapi range admits a
breaking 0.141.x where the proxy fails at startup with
ImportError: cannot import name 'get_flat_dependant'; pinningfastapi==0.136.3fixes it. - Endpoint behavior verified live against a 1.97.0 proxy with a master key set:
GET /health/liveliness→ 200 "I'm alive!" unauthenticated;GET /health/readiness→ 200 unauthenticated;GET /v1/models→ 500 without auth, 200 with a bearer key, returning{"data": [...]};GET /model/info→ 200 with a key and api_key values redacted as"*************". The proxy binds 0.0.0.0 by default. litellm.__version__no longer exists (lazy module attrs); useimportlib.metadata.version("litellm")orlitellm --versionfor the CLI.- Image tags are plain semver (
vX.Y.Z) since 1.84.0:-stable/-nightlysuffixes are gone,main-latestis deprecated and no longer updated. GHCR images are cosign-signed; docs also publish to docker.litellm.ai. - Support policy (effective June 2026): only the four most recent stable minor lines receive updates.
- Route lockdown (
public_routes,admin_only_routes,allowed_routes) is an Enterprise feature as of this refresh; JWT principals carry their own route lists.
Refresh procedure
- Check the releases page for the new stable; read its release notes for breaking
changes (
!markers), changed defaults, and security fixes. - Re-install into a scratch venv (
pip install 'litellm[proxy]'==<new>plus the fastapi pin if needed), start a proxy with a dummy-key config, and re-verify the health endpoints with the bundled probe:scripts/litellm-health --url http://127.0.0.1:<port> --check health --check readiness --check models --key <master> --json. - Update the version observations above and any version-pinned claims in SKILL.md
and references (CVE floor,
/metricsauth, budget semantics, EE boundaries). - Re-run the bundled tests:
.venv/bin/python -m pytest litellm/tests/.
Related skill sources
ml-engineeringowns engine selection, quantization decisions, serving methodology, and evaluation design — the layer above gateway operations.vllmandllama-cppown operating those inference engines themselves; LiteLLM routes to them viaopenai/...-style prefixes or dedicated ones (hosted_vllm/,vllm/,lm_studio/).kubernetes,docker-compose, andtraefikown the infrastructure and TLS termination layers beneath a public proxy deployment.