创建嵌入向量
创建表示输入文本的嵌入向量。
AuthorizationBearer <token>
In: header
modelstring
要使用的模型 ID。
inputstring | array<string>
要嵌入的输入文本,编码为字符串或令牌数组。
user?string
代表您最终用户的唯一标识符。
Response Body
curl -X POST "https://api.openroute.cn/v1/embeddings" \ -H "Content-Type: application/json" \ -d '{ "model": "text-embedding-ada-002", "input": "The food was delicious and the waiter..." }'
Last updated on