From 6321e8f783c30824a2bacdae2efd5092f2ba194c Mon Sep 17 00:00:00 2001 From: Ahmed Zamil Date: Fri, 20 Mar 2026 00:57:40 +0300 Subject: [PATCH] endpoint --- Tests/Annotations/Program.cs | 37 ++++++++++++------------------------ 1 file changed, 12 insertions(+), 25 deletions(-) diff --git a/Tests/Annotations/Program.cs b/Tests/Annotations/Program.cs index a8afe04..64d5693 100644 --- a/Tests/Annotations/Program.cs +++ b/Tests/Annotations/Program.cs @@ -11,19 +11,6 @@ using System.Data; var endpoint = "http://localhost:1234/v1"; var credential = new ApiKeyCredential("lm-studio"); -////var client = new OpenAIClient(credential, new OpenAIClientOptions() { Endpoint = new Uri(endpoint) }); - -////var chat = client.GetChatClient("microsoft/phi-4"); - -//var llmRunner = new LlmRunner(); - -//await llmRunner.RunAsync( -// node, -// endpoint, -// credential, -// "microsoft/phi-4" -//); - var runner = new LlmRunner(); var models = new List @@ -31,43 +18,43 @@ var models = new List new() { Name = "Phi-4", - Endpoint = "http://localhost:1234/v1", - ApiKey = new ApiKeyCredential("lm-studio"), + Endpoint = endpoint, + ApiKey = credential, ModelName = "microsoft/phi-4" }, new() { Name = "Qwen2.5-7B", - Endpoint = "http://localhost:1234/v1", - ApiKey = new ApiKeyCredential("lm-studio"), + Endpoint = endpoint, + ApiKey = credential, ModelName = "qwen2.5-7b-instruct" }, new() { Name = "gpt-oss", - Endpoint = "http://localhost:1234/v1", - ApiKey = new ApiKeyCredential("lm-studio"), + Endpoint = endpoint, + ApiKey = credential, ModelName = "openai/gpt-oss-20b" }, new() { Name = "qwen2.5-1.5b-instruct", - Endpoint = "http://localhost:1234/v1", - ApiKey = new ApiKeyCredential("lm-studio"), + Endpoint = endpoint, + ApiKey = credential, ModelName = "qwen2.5-1.5b-instruct" }, new() { Name = "ministral-3-3b", - Endpoint = "http://localhost:1234/v1", - ApiKey = new ApiKeyCredential("lm-studio"), + Endpoint = endpoint, + ApiKey = credential, ModelName = "mistralai/ministral-3-3b" }, new() { Name = "deepseek-r1-0528-qwen3-8b", - Endpoint = "http://localhost:1234/v1", - ApiKey = new ApiKeyCredential("lm-studio"), + Endpoint = endpoint, + ApiKey = credential, ModelName = "deepseek/deepseek-r1-0528-qwen3-8b" } };