Skip to content

Instantly share code, notes, and snippets.

@wullemsb
Created September 11, 2024 19:43
HttpClient client = new HttpClient();
client.Timeout = TimeSpan.FromMinutes(2);
var builder = Kernel.CreateBuilder()
.AddOpenAIChatCompletion(
modelId: "phi3.5:latest", apiKey: null, endpoint: new Uri("http://localhost:11434"), httpClient: client);
builder.Services.AddLogging(c => c.SetMinimumLevel(LogLevel.Trace).AddDebug());
// Build the kernel
Kernel kernel = builder.Build();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment