How to use the Public OpenAI API for Cognitive Search/Chat GPT Demo?

Siegfried Heintze 1,861 Reputation points
2023-12-05T04:11:00.67+00:00

I apologize if this is a duplicate. I posted this once already and got an error and now I cannot find my post.

As per https://www.youtube.com/watch?v=KG0xpstQAfk I am trying to follow these instructions: https://github.com/Azure-Samples/azure-search-openai-demo#switching-from-an-azure-openai-endpoint-to-an-openai-instance

Since I don't have the required account or required acceptance criteria to get a the required account, it looks like I'll have to use the OpenAI instead of azure OpenAI. Shucks!

So it (https://github.com/Azure-Samples/azure-search-openai-demo#azure-account-requirements) says I can "learn how to switch to an OpenAI instance" but the link just takes me to top of the page. Can someone guide me to the instructions for running the demo with an Open AI instance?

Thanks

Siegfried

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,621 questions
0 comments No comments
{count} votes

Accepted answer
  1. SnehaAgrawal-MSFT 20,471 Reputation points
    2023-12-06T15:24:09.97+00:00

    @Siegfried Heintze Thanks for reaching here!

    While OpenAI and Azure OpenAI Service rely on a common Python client library, there are small changes you need to make to your code in order to swap back and forth between endpoints.

    Here is a link to a Microsoft Learn article that explains how to switch between OpenAI and Azure OpenAI endpoints with Python. It provides detailed instructions on how to authenticate, use the appropriate API key, and make the necessary changes to your code to work across OpenAI and Azure OpenAI.

    I hope this helps!

    Additionally, I will reach out to content team for the doc bug.

    Let us know if you have further questions.


0 additional answers

Sort by: Most helpful