mirror of
https://github.com/microsoft/autogen.git
synced 2026-04-20 03:02:16 -04:00
[.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:
@@ -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),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user