Skip to content

Issue: 404 "Resource Not Found" Error When Calling responses().create() with Java API (OpenAIOkHttpClientAsync) #586

@SereinHenry

Description

@SereinHenry

Hi team,

I apologize if I’m misinterpreting something, as I’m new to Azure. I’m currently using the Java API OpenAIOkHttpClientAsync and making response calls like:

currentClient.responses().create(params)

I noticed that the create() function automatically adds /deployments/ to the URL, something like
https://agex-eastus2-dev.openai.azure.com/openai/deployments/ResponsesModel%7Bstring=gpt-4.1%7D)/responses?api-version=2025-04-01-preview.

According to the latest Azure documentation (🔗 link), it seems the endpoint or calling method for responses was changed recently (possibly last week).

Since this change, my requests have consistently returned a 404, resource not found error, causing all my Azure OpenAI response calls to fail. While I tried, removed /deployments and calling to

https://agex-eastus2-dev.openai.azure.com/openai/responses?api-version=2025-04-01-preview with the same headers and body, which worked!

Could someone clarify if:

I am misunderstanding the new usage, or
There might be an issue with the Java SDK’s URL construction?
Any guidance or suggestions would be greatly appreciated!

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions