Prompts werden generisch behandelt

+ Falls PromptServer nicht erreichbar? Aktuell Prompts deaktivieren
This commit is contained in:
2026-02-10 12:41:47 +01:00
parent 0e888cb4ff
commit efbe1535eb
4 changed files with 18 additions and 6 deletions

View File

@@ -24,7 +24,7 @@ namespace AICore.Facade
_ErrorExtractor = new DefaultErrorExtractor();
}
public ApiResponse<IEnumerable<AiPromptbausteinPromptDC>> GetAiPrompts()
public IEnumerable<AiPromptbausteinPromptDC> GetAiPrompts()
{
var prompts = new List<AiPromptbausteinPromptDC>();
@@ -43,7 +43,7 @@ namespace AICore.Facade
if (!response.Success)
{
throw new NotImplementedException();
return null;
}
var data = response.Data.Select(x => new AiPromptbausteinPromptDC()
@@ -54,7 +54,7 @@ namespace AICore.Facade
Prompt = x.prompt,
});
return ApiResponse<IEnumerable<AiPromptbausteinPromptDC>>.SuccessResponse(data);
return data;
}
}
}