diff --git a/AiCoreUnitTest/OllamaFacadeTest.cs b/AiCoreUnitTest/OllamaFacadeTest.cs index f616ce1c2..2eeaf6d36 100644 --- a/AiCoreUnitTest/OllamaFacadeTest.cs +++ b/AiCoreUnitTest/OllamaFacadeTest.cs @@ -18,7 +18,7 @@ namespace AiCoreUnitTest [TestInitialize] public void TestInitialize() { - OllamaUrl = "https://w2.ownchat.de"; + OllamaUrl = "https://ai2.ownsoft.de"; OllamaKey = "mu9ZPuUXJ4aVGLU1WL2RfPCeSMRmJREwyjVJBP7bHfSz8quZRqN7e7UwnwCDi8GZ"; } diff --git a/Data/SessionFacade.cs b/Data/SessionFacade.cs index 7db40cc7b..d1eb47d5f 100644 --- a/Data/SessionFacade.cs +++ b/Data/SessionFacade.cs @@ -42,7 +42,7 @@ namespace BeWo.Data { get { - return HttpContext.Current.Session["tenant"] as string; + return HttpContext.Current?.Session["tenant"] as string; } set