Prompt Flow “Chat with Wikipedia” Fails with OpenAI 404 NotFoundError — GPT-4o Deployed and Working in Playground

Muhammad Zubair 20 Reputation points
2025-04-14T22:16:48.0133333+00:00

Hi Team,

I’m currently using Azure AI Foundry and have deployed my OpenAI GPT-4o model, which is tested and working correctly in the OpenAI Playground.

However, when I try to use this model inside Prompt Flow (via “Chat with Wikipedia” template from Gallery or even when creating a custom flow from scratch), I receive the following error:

Error
OpenAI API hits NotFoundError: Error code: 404 - {'error': {'code': '404', 'message': 'Resource not found'}}
msedge_NXVBNrJ7iA

||

Additional context:

I am using the GPT-4o model from Azure OpenAI.

The service and deployment are correctly set up — tested via Playground and APIs.

The issue only appears when Prompt Flow tries to invoke the LLM.

I’ve also tried creating a flow from scratch — the issue persists.

I’ve attached a GIF showing the problem visually (not visible here).

What I’ve tried:

  • Verified endpoint and deployment name.
  • Tried with both prebuilt template ("Chat with Wikipedia") and custom flow.
  • Checked resource names, permissions, and API keys.Additional context:
    • I am using the GPT-4o model from Azure OpenAI.
    • The service and deployment are correctly set up — tested via Playground and APIs.
    • The issue only appears when Prompt Flow tries to invoke the LLM.
    • I’ve also tried creating a flow from scratch — the issue persists.
  • I’ve attached a GIF showing the problem visually (not visible here). What I’ve tried:
    • Verified endpoint and deployment name.
    • Tried with both prebuilt template ("Chat with Wikipedia") and custom flow.
    • Checked resource names, permissions, and API keys.
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
{count} votes

Your answer

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