Prompts werden generisch behandelt
+ Falls PromptServer nicht erreichbar? Aktuell Prompts deaktivieren
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user