Skip to content

Commit

Permalink
Update default endpoint URL in AddLmStudio method
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
GregorBiswanger committed Sep 27, 2024
1 parent d51c898 commit 987d94a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OllamaApiFacade/Extensions/KernelBuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static class KernelBuilderExtensions
/// <remarks>
/// 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.
/// </remarks>
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 };
Expand Down

0 comments on commit 987d94a

Please sign in to comment.