curl --location --request POST 'https://api.302.ai/302/crawler/generate-schema' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: text/plain' \
--data-raw '{
"description": "AI model and detailed introduction",
"url": "https://news.302.ai"
}'
{
"schema": {
"type": "object",
"properties": {
"model_name": {
"type": "string",
"description": "The name of the AI model"
},
"description": {
"type": "string",
"description": "Detailed introduction to AI model"
},
"release_date": {
"type": "string",
"description": "The release date of the large AI model, in the format YYYY-MM-DD"
},
"views": {
"type": "number",
"description": "The number of views of the article"
},
"category": {
"type": "string",
"description": "Classification of AI models"
}
},
"required": [
"model_name",
"description",
"release_date",
"views",
"category"
]
}
}