Skip to content

Support Azure OpenAI Responses API #20346

@stuartb55

Description

@stuartb55

Describe what you are trying to accomplish and why in non technical terms
I want to be able to use the GPT-5 models from OpenAI through Azure when using the Frigate GenAI feature.

When creating a deployment using a GPT-4 model, the endpoint provided in the Azure portal is: https://name.cognitiveservices.azure.com/openai/deployments/gpt-4o/chat/completions?api-version=2025-01-01-preview

When creating a deployment using a GPT-5 model the endpoint provided in the Azure portal is: https://name.cognitiveservices.azure.com/openai/responses?api-version=2025-04-01-preview

I believe the API has changed between the two versions resulting in the following in the Frigate logs when using a GPT-5 model:

2025-10-03 19:06:06.837196923  [2025-10-03 19:06:06] frigate.genai                  DEBUG   : Sending 20 images to create review description on back_door
2025-10-03 19:06:07.036466589  [2025-10-03 19:06:07] frigate.genai.azure-openai     WARNING : Azure OpenAI returned an error: Error code: 404 - {'error': {'code': 'DeploymentNotFound', 'message': 'The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again.'}}

The deployment does exist but when sending a request (outside of Frigate) to the endpoint using a payload similar to this https://github.com/blakeblackshear/frigate/blob/dev/frigate/genai/azure-openai.py#L44 the response is:

{
  "error": {
    "message": "Unsupported parameter: 'messages'. In the Responses API, this parameter has moved to 'input'. Try again with the new parameter. See the API documentation for more information: https://platform.openai.com/docs/api-reference/responses/create.",
    "type": "invalid_request_error",
    "param": null,
    "code": "unsupported_parameter"
  }
}

If this is the case then please can support be added for the new Responses API so GPT-5 models can be used.

https://learn.microsoft.com/en-us/azure/ai-foundry/openai/how-to/responses?tabs=python-key

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions