Custom GPTs call to Azure API, based on JSON schema originally generated by Azure API Management from a python application app, raises UnrecognizedKwargsError error. Azure API works correctly, tested interally and externally from Azure Developer Portal.
hi friend, can i see the code that you are talking about?
1 Like
Sure. The endpoint https://kampinos-apim.azure-api.net/kampinos/inference .
{
"openapi": "3.1.0",
"info": {
"title": "kampinos",
"description": "Import from \"kampinos\" Function App",
"version": "1.0"
},
"servers": [
{
"url": "https://kampinos-apim.azure-api.net/kampinos"
}
],
"paths": {
"/inference": {
"post": {
"summary": "Perform Bayesian Inference",
"description": "Perform Bayesian inference and return the calculated probability.",
"operationId": "post-inference",
"requestBody": {
"description": "Input evidence for Bayesian Inference",
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"evidence": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}
}
},
"responses": {
"200": {
"description": "The calculation was successful and the response contains the probability value."
}
}
}
}
},
"components": {
"schemas": {},
"securitySchemes": {
"apiKeyHeader": {
"type": "apiKey",
"name": "Ocp-Apim-Subscription-Key",
"in": "header"
}
}
},
"security": [
{
"apiKeyHeader": []
}
]
}