UI はローカライズ済みです。スキルの紹介と説明文書は選択した言語へ 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.

Independent GitHub snapshot · Automated classification · Original documentation governs

スキルの説明

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?
保存したスキル