AI

AI 对话。AI chat completions.

仅允许在 CNB 流水线中使用 CNB_TOKEN 调用。 CNB_TOKEN may only be used to call this API from within a CNB pipeline. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-code:r

post/{repo}/-/ai/chat/completions

Request

  • Base URL: https://api.cnb.cool (the document declares no server; this is the origin it was published from)
  • URL: https://api.cnb.cool/{repo}/-/ai/chat/completions
  • Auth: API key in header Authorization

Path parameters

repostring required

仓库完整路径。Full repository path.

Request body

modelstring

模型名称。Model name.

streamboolean

是否流式返回结果,部分模型可能不支持非流式。Whether to stream results. Some models may not support non-streaming.

Response

OK

Changes

No recorded changes to this operation across all 1 revision of this API.