把文本转换为向量。请先确认令牌能够看到对应的嵌入模型。
curl https://top.qingyuntop.ai/v1/embeddings \
-H "Authorization: Bearer $QINGYUN_TOP_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "your-embedding-model-id",
"input": "需要向量化的文本"
}'input 可以是字符串或字符串数组。向量位于响应的 data[].embedding。