Created
September 11, 2024 19:43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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