外观
重排序
POST
https://www.aipro2.com/v1/rerank给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。
为提供的提示和参数创建完成
官方文档:https://docs.siliconflow.cn/cn/api-reference/rerank/create-rerank
Header 参数
Content-Type*string请求体 Content-Type,一般为 application/json示例application/jsonAccept*string期望的响应 Content-Type示例application/jsonAuthorizationstringBearer API Key示例Bearer {{YOUR_API_KEY}}X-Forwarded-Hoststring转发原始 Host(代理场景)示例localhost:5173
请求体参数
application/jsondocuments*array<string>instruct*stringmodel*stringquery*stringtop_n*integer
响应
application/jsonPostV1RerankResponse
choices*array<object>候选结果列表created*integer创建时间(Unix 时间戳)id*string资源或任务 IDobject*string对象类型标识,如 chat.completionusage*objectToken 用量统计
