I’m trying to call new embedding models from Azure openAI using Custom Web API skillset. My Json is defined this way:
{
"name": "skillset-name",
"description": "",
"skills": [
{
"@odata.type": "#Microsoft.Skills.Custom.WebApiSkill",
"name": "Text Embedding",
"description": "",
"context": "/document",
"uri": "https://my_endpoint/openai/deployments/text-embedding-3-small/embeddings?api-version=2024-02-01&model=text-embedding-3-small&dimensions=512",
"httpMethod": "POST",
"timeout": "PT30S",
"batchSize": 1000,
"degreeOfParallelism": null,
"inputs": [
{
"name": "input",
"source": "/document/representacao_vetorial"
}
],
"outputs": [
{
"name": "embedding",
"targetName": "vetor"
}
],
"httpHeaders": {
"api-key": "api-key"
},
"authIdentity": null
}
],
"cognitiveServices": {
"@odata.type": "#Microsoft.Azure.Search.DefaultCognitiveServices",
"description": null
},
"knowledgeStore": null,
"indexProjections": null,
"encryptionKey": null
}
But when the indexer run, I’m getting this error:
Web Api response status: 'BadRequest', Web Api response details: '{
"error": {
"message": "'input' is a required property",
"type": "invalid_request_error",
"param": null,
"code": null
}
}
'
What am I missing? How to pass ‘input’ parameter to API call?