Azure .NET OpenAPI version 2 has breaking changes

David Thielen 2,506 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.
2,529 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.
236 questions
{count} votes