Skip to main content
get/workspaces/current/models/model-types/{model_type}
Request example
Response
get/workspaces/current/models/model-types/{model_type}

Authorization

Authorizationstringheaderrequired#

每个请求都通过 API Key 认证:Authorization: Bearer {API_KEY}。应用接口使用应用 API Key,知识库接口使用知识库 API Key(快速开始)。

API Key 应保存在服务端,切勿嵌入客户端代码。缺失或无效的 Key 会返回 HTTP 401(unauthorized)。

Path parameters

model_typeenum<string>required#
要获取的模型类型。对于知识库配置,使用 text-embedding 获取嵌入模型,使用 rerank 获取重排序模型。
Options:text-embeddingrerankllmttsspeech2textmoderation

Responses

application/json
200
指定类型的可用模型。
dataobject[]#
模型供应商及其可用模型的列表。