界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
部署与运维 · SKILL.md

litserve

litserve

【部署与运维】Serve custom AI APIs with LitServe, including general LitAPI and LitServer workflows, OpenAI-compatible endpoints, MCP tools, and deployment helpers.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: litserve description: "Serve custom AI APIs with LitServe, including general LitAPI and LitServer workflows, OpenAI-compatible endpoints, MCP tools, and deployment helpers." metadata: disco-role: operating disable-model-invocation: true license: Apache 2.0

LitServe

Use this skill when a request mentions LitServe, LitAPI, LitServer, /predict, /v1/chat/completions, /v1/embeddings, /mcp/, client.py, dockerize, health/info/ shutdown routes, batching, streaming, auth, or multi-endpoint serving.

Quick install

  • Install the package with pip install litserve.
  • Add optional extras only for the workflow you need: fastmcp, Pillow, numpy, openai, httpx, asgi-lifespan, requests, python-multipart, and psutil.
  • Verify the installation with scripts/smoke_import.py or a clean python -I -c "import litserve as ls; print(ls.__version__)" check.

Route map

Task familyRead first
General serving, deployment, payloads, auth, middleware, clients, Dockersub-skills/server-basics/SKILL.md
OpenAI-compatible chat completions and embeddingssub-skills/openai-specs/SKILL.md
MCP tool exposure and streamable HTTP mountingsub-skills/mcp/SKILL.md

Reference map

Shared notes

  • The root skill is a router. Detailed workflows, validation tables, and troubleshooting belong in the subskills and bundled references.
  • Do not point runtime instructions back to source-checkout paths.
  • Prefer the root smoke script and the bundled subskill scripts before reopening the original repository.

Good starting questions

  • How do I serve a custom model or pipeline?
  • How do I add batching, streaming, auth, or middleware?
  • How do I expose an OpenAI-compatible chat or embedding endpoint?
  • How do I expose an MCP tool from a LitAPI?
  • How do I package a LitServe app for Docker or local deployment?
我的收藏