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

serving

serving

【开发与工程】Guides FastVideo HTTP and WebSocket serving, typed request contracts, health checks, session state, and server configuration.

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

技能说明

GitHub

name: serving description: "Guides FastVideo HTTP and WebSocket serving, typed request contracts, health checks, session state, and server configuration." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

Serving

Use for fastvideo serve, OpenAI-compatible HTTP generation, streaming WebSocket sessions, liveness, continuation state, and operator defaults.

Choose the transport

  • No streaming block: stateless HTTP server with video/image endpoints.
  • A streaming block: WebSocket /v1/stream sessions with JSON control frames and binary fMP4 media.
  • router-serve: separate routing/load-balancing configuration; treat it as deployment infrastructure, not the generation request API.

Launch with a nested config:

fastvideo serve --config serve.yaml
fastvideo serve --config serve.yaml --server.port 9000

Read HTTP contract, streaming contract, and server troubleshooting. Use the bundled config helper to create a safe template; review model, host, port, output, and credential settings before starting a listener.

Operational rules

Health checks should be cheap and should not require a full generation unless an operator explicitly wants that. HTTP request fields override explicit default_request fields, which override hardcoded fallbacks; omitted schema defaults do not become operator intent. Streaming sessions have timeout and segment caps and terminal states; clients must send the correct opening frame.

Do not expose a server publicly without authentication/network controls supplied by the deployment environment. Prompt enhancement and safety integrations are optional and may require credentials or model files.

我的收藏