From 977decaf2e20b72e30c33793dd9088d31ce24cb3 Mon Sep 17 00:00:00 2001 From: Rene Evertz Date: Fri, 20 Feb 2026 13:27:51 +0100 Subject: [PATCH] Fehler bei 200 wird geparst --- Server/Components/AICore/Facade/LLM/OllamaApiClient.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) {