dotnet/website/release_note/0.2.0.md
GenerateReplyOption (#3436).name field (#3437).AutoGen.OpenAI package now uses OpenAI v2.0, providing improved functionality and performance. In the meantime, the original AutoGen.OpenAI is still available and can be accessed by AutoGen.OpenAI.V1. This allows users who prefer to continue to use Azure.AI.OpenAI v1 package in their project. (#3193).GPTAgent has been deprecated in favor of OpenAIChatAgent and OpenAIMessageConnector (#3404).ollama and OpenAIChatAgent (#3248).GPTAgent (#3404):Before:
var agent = new GPTAgent(...);
After:
var agent = new OpenAIChatAgent(...)
.RegisterMessageConnector();
Previous way of creating OpenAIChatAgent:
var openAIClient = new OpenAIClient(apiKey);
var openAIClientAgent = new OpenAIChatAgent(
openAIClient: openAIClient,
model: "gpt-4o-mini",
// Other parameters...
);
New way of creating OpenAIChatAgent:
var openAIClient = new OpenAIClient(apiKey);
var openAIClientAgent = new OpenAIChatAgent(
chatClient: openAIClient.GetChatClient("gpt-4o-mini"),
// Other parameters...
);