Share via

Azure .NET OpenAPI version 2 has breaking changes

David Thielen 3,231 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 in Foundry Models
Azure | Azure Startups
Azure | Azure Startups

Startups: Companies that are in their initial stages of business and typically developing a business model and seeking financing.


1 answer

Sort by: Most helpful
  1. YutongTie-9091 54,021 Reputation points Moderator
    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.

    Was this answer helpful?

    0 comments No comments

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.