Files
BeWoPlaner/AiCoreUnitTest/OllamaFacadeTest.cs

35 lines
708 B
C#
Raw Normal View History

using AICore.Facade.LLM;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Net;
namespace AiCoreUnitTest
{
[TestClass]
public class OllamaFacadeTest
{
public string OllamaUrl { get; set; }
public string OllamaKey { get; set; }
[TestInitialize]
public void TestInitialize()
{
2025-08-05 14:45:25 +02:00
OllamaUrl = "https://w2.ownchat.de";
OllamaKey = "mu9ZPuUXJ4aVGLU1WL2RfPCeSMRmJREwyjVJBP7bHfSz8quZRqN7e7UwnwCDi8GZ";
}
public OllamaApiClient GetOllamaApiClient()
=> new OllamaApiClient(OllamaUrl, OllamaKey);
[TestMethod]
public void GetModels()
{
var client = GetOllamaApiClient();
var models = client.GetAiModelle();
Assert.IsNotNull(models);
}
}
}