From 18b15184ea6dceba07b9e6a6a73594e823714d40 Mon Sep 17 00:00:00 2001 From: Martin Evans Date: Thu, 19 Oct 2023 21:24:02 +0100 Subject: [PATCH] Added logger parameter in to LLama.Web context creation --- LLama.Web/Models/LLamaModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LLama.Web/Models/LLamaModel.cs b/LLama.Web/Models/LLamaModel.cs index 61341d42..5aedc5f5 100644 --- a/LLama.Web/Models/LLamaModel.cs +++ b/LLama.Web/Models/LLamaModel.cs @@ -58,7 +58,7 @@ namespace LLama.Web.Models if (_config.MaxInstances > -1 && ContextCount >= _config.MaxInstances) throw new Exception($"Maximum model instances reached"); - context = _weights.CreateContext(_config); + context = _weights.CreateContext(_config, _llamaLogger); if (_contexts.TryAdd(contextName, context)) return Task.FromResult(context);