请求地址
POST https://api.stepfun.com/v1/vector_stores
请求体
-
namestringrequired
知识库的名字,用于区分多个不同的知识库。目前仅支持英文、数字和下划线,且不支持以下划线开头。 -
typestringoptional
知识库的类型,支持 text (文本类型知识库)和 image (图片知识库)。
请求响应
返回单个 Vector Store 对象示例
- curl
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
🎉 全新 Step Plan 上线 · Credit 月池随心用、加油包随时补,速来体验!立即查看 →
POST https://api.stepfun.com/v1/vector_stores
name string requiredtype string optionalcurl -L "https://api.stepfun.com/v1/vector_stores" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $STEP_API_KEY" \
-d '{
"name": "food_calorie2",
"type": "text"
}'
{
"id": "167907758199320576",
"name": "food_calorie"
}
此页面对您有帮助吗?