I am adding multiple APIs in Azure API management service instance(Consumption plan) using Azure portal by option Add API>Create from definition>OpenAPI. Now in that i am able to add azure openai apis using swagger or inference.json from azure-rest-api-specs
Now for adding api of serverless llm deployment like Meta-Llama-3-8B-Instruct, after deploying the model in AI Foundary we get the swagger.json for the deployment as a url. I downloaded it and used the same for adding the api, but got this error
Parsing error(s): redact is not a valid property at #/components/schemas/ChatCompletionRequest/properties/messages [] redact is not a valid property at #/components/schemas/ChatCompletionRequest/properties/stop [] redact is not a valid property at #/components/schemas/ChatCompletionRequest/properties/tools [] redact is not a valid property at #/components/schemas/ChatCompletionRequest/properties/user [] redact is not a valid property at #/components/schemas/ChatCompletionRequestOssVllm/properties/messages [] redact is not a valid property at #/components/schemas/ChatCompletionRequestOssVllm/properties/stop [] redact is not a valid property at #/components/schemas/ChatCompletionRequestOssVllm/properties/tools [] const is not a valid property at #/components/schemas/ToolType []
Parsing error(s): The input OpenAPI file is not valid for the OpenAPI specification https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md (schema https://github.com/OAI/OpenAPI-Specification/blob/master/schemas/v3.0/schema.yaml).
The version of openai specification in swagger.json is openapi": "3.1.0" (while in the Azure openai models it is 3.0.0) . I also tried removing those redact and const lines still the api was not working. Please answer the following questions
- Is openai specification openapi": "3.1.0" is supported by API Management consumption plan
- How can I add the APIs of the serverless models(deployed in Azure AI foundary) in the APIM service. Are there any other ways
Please guide me in detail