From 987d94a2c1ab42009d6a1dfa94cd6aad75e9576c Mon Sep 17 00:00:00 2001 From: Gregor Biswanger Date: Fri, 27 Sep 2024 17:55:35 +0200 Subject: [PATCH] Update default endpoint URL in AddLmStudio method The default endpoint URL for the `AddLmStudio` method in the `KernelBuilderExtensions` class has been updated from "http://localhost:1234" to "http://localhost:1234/v1/". This change ensures that the method now points to a more specific versioned endpoint by default. --- OllamaApiFacade/Extensions/KernelBuilderExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OllamaApiFacade/Extensions/KernelBuilderExtensions.cs b/OllamaApiFacade/Extensions/KernelBuilderExtensions.cs index d366397..112c424 100644 --- a/OllamaApiFacade/Extensions/KernelBuilderExtensions.cs +++ b/OllamaApiFacade/Extensions/KernelBuilderExtensions.cs @@ -15,7 +15,7 @@ public static class KernelBuilderExtensions /// /// This method sets up a connection to the specified LM Studio endpoint and configures the kernel builder to use OpenAI chat completion with the provided model. /// - public static IKernelBuilder AddLmStudio(this IKernelBuilder builder, string model = "none", string endpoint = "http://localhost:1234") + public static IKernelBuilder AddLmStudio(this IKernelBuilder builder, string model = "none", string endpoint = "http://localhost:1234/v1/") { var uri = new Uri(endpoint); var openAiClientOptions = new OpenAIClientOptions { Endpoint = uri };