models api
通过提供restful接口,给第三方平台接入maas平台的能力。
快速开始
- Base URLs
http://{ip:端口}/api/v1/score 或者https://{域名}/api/v1/score
- 请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
Authorization | header | string | 是 | Bearer |
Content-Type | header | string | 是 | application/json |
body | body | string | 是 | 参考标准的OpenAI接口规范 |
API Key : 在用户中心的访问令牌页面中获取,你也可以创建多个 Api Key 以运用到不同业务系统中。
bge-reranker-v2-m3
- 接口示例
json
{
"model": "bge-reranker-v2-m3",
"text_1": "What is the capital of France?",
"text_2": ["paris", "Berlin", "Madrid", "BeiJing", "ShangHai", "LanZhou", "Paris"],
}