[.Net] Update OpenAI, semantic kernel to latest version (#3792)

* update OpenAI, semantic kernel to latest version

* fix build error

* update

* update release note
This commit is contained in:
Xiaoyun Zhang
2024-10-15 07:23:33 -07:00
committed by GitHub
parent a6f022958f
commit 0560bdd645
23 changed files with 107 additions and 121 deletions

View File

@@ -2,6 +2,7 @@
// Example08_LMStudio.cs
#region lmstudio_using_statements
using System.ClientModel;
using AutoGen.Core;
using AutoGen.OpenAI;
using AutoGen.OpenAI.Extension;
@@ -16,7 +17,7 @@ public class Example08_LMStudio
{
#region lmstudio_example_1
var endpoint = "http://localhost:1234";
var openaiClient = new OpenAIClient("api-key", new OpenAIClientOptions
var openaiClient = new OpenAIClient(new ApiKeyCredential("api-key"), new OpenAIClientOptions
{
Endpoint = new Uri(endpoint),
});