Getting error while configuraing semantic cahce in apim

Rajnish Soni 60 Reputation points
2025-03-27T07:24:40.48+00:00

Hello Team,

I am trying to configure azure APIM with semantic caching and getting error message in trace messages.

can you please help to fix this.

my backend custom url is

https://my-openai.openai.azure.com

i am getting below error:

azure-openai-semantic-cache-lookup (185.049 ms)
{
    "response": {
        "status": {
            "code": 404,
            "reason": "Resource Not Found"
        },
azure-openai-semantic-cache-lookup (0.053 ms)
{
    "message": "Failed to get embeddings from the backend endpoint. Skipping caching. Status code: NotFound."
}

in the forward request, apim is appending the api version automatically which is wrong.

"url": "https://my-openai.openai.azure.com/?api-version=2024-02-01",
Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,447 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.