OpenAI
文档重排
授权Bearer <token>
位置: header
请求主体
application/json
TypeScript 定义
在 TypeScript 中使用 request body 类型。
响应主体
application/json
curl -X POST "https://example.com/openai/rerank" \ -H "Content-Type: application/json" \ -d '{ "model": "string", "query": "string", "documents": [ "string" ] }'{ "object": "string", "results": [ { "index": 0, "relevance_score": 0, "document": "string" } ]}