{
"description": "AI大模型及详情介绍",
"url": "https://news.302.ai"
}
curl --location --request POST 'https://api.302.ai/302/crawler/generate-schema' \
--header 'Authorization: Bearer ' \
--header 'Model: gpt-4o-mini' \
--header 'Content-Type: application/json' \
--data-raw '{
"description": "AI大模型及详情介绍",
"url": "https://news.302.ai"
}'
{
"schema": {
"type": "object",
"properties": {
"model_name": {
"type": "string",
"description": "AI大模型的名称"
},
"description": {
"type": "string",
"description": "AI大模型的详细介绍"
},
"release_date": {
"type": "string",
"description": "AI大模型的发布日期,格式为YYYY-MM-DD"
},
"views": {
"type": "number",
"description": "文章的浏览量"
},
"category": {
"type": "string",
"description": "AI大模型所属的分类"
}
},
"required": [
"model_name",
"description",
"release_date",
"views",
"category"
]
}
}