Skip to content

Instantly share code, notes, and snippets.

@wullemsb
Created June 22, 2024 10:56
var semanticKernelBuilder = Kernel.CreateBuilder()
.AddOpenAIChatCompletion( // We use Semantic Kernel OpenAI API
modelId: "phi3",
apiKey: null,
endpoint: new Uri("http://localhost:11434"),
httpClient: client);// With Ollama OpenAI API endpoint
semanticKernelBuilder.Services.AddSingleton(loggerFactory);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment