diff --git a/Server/Components/AICore/Facade/LLM/OllamaApiClient.cs b/Server/Components/AICore/Facade/LLM/OllamaApiClient.cs index 8af1d83c8..92ab2b5ae 100644 --- a/Server/Components/AICore/Facade/LLM/OllamaApiClient.cs +++ b/Server/Components/AICore/Facade/LLM/OllamaApiClient.cs @@ -88,10 +88,16 @@ namespace AICore.Facade.LLM prompt_eval_count = 22L, prompt_eval_duration = 2132887L, eval_count = 66L, - eval_duration = 1282438235L + eval_duration = 1282438235L, + error = "" }; var response = _PostClientFacade.GetAnonymousTypeAsync("api/ollama/chat/completions", response_format, _ErrorExtractor).GetAwaiter().GetResult(); + + if(response.Data is object && response.Data.error is string err) + { + response.ErrorStrings.Add(err); + } if(logger is object) {