Azure .NET OpenAPI version 2 has breaking changes
David Thielen
2,526
Reputation points
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):
- Namespace changed from Azure.AI.OpenAI to OpenAI
- Parameters for OpenAIClient constructor have changed (not sure to what - no documentation).
- The following classes no longer exist.
- ChatRequestMessage
- ChatRequestSystemMessage
- ChatRequestUserMessage
- ChatCompletionsOptions
- The method OpenAIClient.GetChatCompletionsAsync() no longer exists.
thanks - dave