Azure .NET OpenAPI version 2 has breaking changes

David Thielen 3,121 Reputation points
2024-06-20T19:14:59.82+00:00

Hi all;

Is the new version 2 OpenAIClient and associated classes documented anywhere. All I can find is the 1.0 documentation.

And hopefully guidance on how to change my code for the new API.

Changes I’ve found (likely many more):

  1. Namespace changed from Azure.AI.OpenAI to OpenAI
  2. Parameters for OpenAIClient constructor have changed (not sure to what - no documentation).
  3. The following classes no longer exist.
    1. ChatRequestMessage
    2. ChatRequestSystemMessage
    3. ChatRequestUserMessage
    4. ChatCompletionsOptions
  4. The method OpenAIClient.GetChatCompletionsAsync() no longer exists.

thanks - dave

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,254 questions
Azure Startups
Azure Startups
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Startups: Companies that are in their initial stages of business and typically developing a business model and seeking financing.
394 questions
{count} votes

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 52,956 Reputation points
    2024-07-10T22:25:43.3333333+00:00

    We close this issue with support ticket, once there is a solution from support team, will post here.

    Thanks,

    Yutong

    -Please kindly accept the answer if you feel helpful to support the community, thanks a lot.

    0 comments No comments

Your answer

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