Skip to content

[Provider compatibility]: Azure Responses rejects output.encrypted_content in include #7952

Closed

Description

@x3M3x

Client or integration

Codex App

Provider or upstream service

Azure OpenAI, configured through the openai-responses adapter with an Azure resource URL.

OpenCodex version

Observed on installed 2.93.0. The missing Azure normalization was also reproduced with adapter regression tests against dev commit 095ddf6. No live request against a newer release was performed.

Endpoint or capability

POST /openai/v1/responses; request include normalization.

Current behaviour

Codex Desktop requests output.encrypted_content in include. The proxy forwards that entry to Azure, which rejects the request with HTTP 400 invalid_value. The existing xAI-specific normalization does not cover Azure resource URLs or the Azure adapter.

Expected behaviour

Omit only the known rejected output.encrypted_content entry on Azure destinations. Preserve reasoning.encrypted_content, other include entries, caller-owned input, and unrelated destination behavior. Omit include when removing the rejected entry leaves no entries.

Minimal redacted request or reproduction

Configure an openai-responses provider with baseUrl https://example.openai.azure.com/openai/v1 and send a Responses request with:
{"model":"YOUR_DEPLOYMENT","input":[],"include":["reasoning.encrypted_content","output.encrypted_content"]}

This is a minimal request-shape illustration, not a captured complete outbound payload. The same missing normalization is reproducible through the Azure adapter's request builder without network access.

Actual response or error

HTTP 400:
{"error":{"message":"Invalid value: 'output.encrypted_content'. Supported values are: 'file_search_call.results', 'web_search_call.results', 'web_search_call.action.sources', 'message.input_image.image_url', 'computer_call_output.output.image_url', 'code_interpreter_call.outputs', 'reasoning.encrypted_content', and 'message.output_text.logprobs'.","type":"invalid_request_error","param":"include[1]","code":"invalid_value"}}

Upstream documentation

The concrete compatibility contract is the Azure validation response reproduced above: reasoning.encrypted_content is accepted, while output.encrypted_content is rejected. The expected behavior is based on this observed service response and the Codex App request requirement.

Suggested mapping or implementation notes

Reuse the existing exact-entry xAI normalization for Azure adapters and Azure OpenAI resource hosts. Do not apply an include allowlist to arbitrary gateways.

Regression plan: first reproduce the rejected entry in serialized Azure requests, then verify removal through both Azure and plain Responses adapters, preservation of supported entries and caller-owned input, omission of an emptied include, and unchanged unrelated/lookalike hosts.

Additional context and attachments

Related but distinct: #7878 and #7911 addressed xAI destinations. This report concerns Azure OpenAI. No credentials, private resource names, or conversation content are included. The installed proxy has not been modified.

Checks

  • I searched existing provider and compatibility issues.
  • The request and response were redacted.
  • The expected behaviour is based on an upstream specification or a concrete client requirement.

Activity

  1. coderabbitai commented on Oct 29, 2026

    @coderabbitai
    Contributor
    🔗 Related PRs

    #7911 - fix(openai-responses): drop the include entry xAI rejects [open]


    📝 Issue Planner

    Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 Issue enrichment is currently in open beta.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

  2. added
    provider-compatibility
    provider
    on Oct 29, 2026
  3. added a commit that references this issue on Oct 30, 2026
    d389699
  4. lidge-jun commented on Oct 30, 2026

    @lidge-jun
    Owner

    Fixed on dev by #7988 (squash merge d389699, carrying #7953): Azure adapters and Azure OpenAI resource hosts configured through openai-responses now omit only the unsupported output.encrypted_content include entry, keeping reasoning.encrypted_content and other entries. It will ship in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    providerprovider-compatibility

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions