OpenAI 兼容接口OpenAI-compatible API
OpenAI-compatible API
解决什么问题What problem it solves
本地跑的模型,用现成的 OpenAI 客户端就能连。Serve a local model so existing OpenAI clients can connect unchanged.
这是什么What it is
vLLM 官方提供兼容 OpenAI Completions、Chat Completions、Embeddings 等接口的 HTTP 服务。
llama.cpp 的服务端同样以 OpenAI 兼容 API 方式启动。
vLLM provides an HTTP server compatible with OpenAI's Completions, Chat Completions and Embeddings APIs.
llama.cpp's server likewise launches as an OpenAI-compatible API server.
为什么需要知道Why it matters
换后端不用改代码,这是本地与云端之间最省事的切换方式。Swap backends without touching your code: the cheapest switch between local and cloud.
别名Chinese aliases
OpenAI 兼容 API
现在能做什么What you can do now
回到名词地图看第5站的其他 29 个词 →Back to the map: the other 29 terms in station 5 →