tenant in url bei getaiprompt ownsofts

This commit is contained in:
2026-07-10 10:45:39 +02:00
parent b8d5855d3c
commit 7fa49d5adb
2 changed files with 3 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ namespace AICore.Facade
_ErrorExtractor = new DefaultErrorExtractor();
}
public IEnumerable<AiPromptbausteinPromptDC> GetAiPrompts(AiActionType aiActionType, BeWoAppVersion version)
public IEnumerable<AiPromptbausteinPromptDC> GetAiPrompts(AiActionType aiActionType, BeWoAppVersion version, string tenant)
{
var prompts = new List<AiPromptbausteinPromptDC>();
@@ -53,7 +53,7 @@ namespace AICore.Facade
}
};
var method = "api/prompts/4368658435";
var method = $"api/prompts/{tenant}";
_ClientFacade.JsonObject = new
{

View File

@@ -317,7 +317,7 @@ namespace BeWo.Service.Plugins
{
var url = MergedConfig.GetSetting(WebConfigSetting.AiPromptsUrl);
var client = new AiPromptsApiClient(url);
var response = client.GetAiPrompts(aiActionType, BeWoAppInfo.BeWoAppVersion);
var response = client.GetAiPrompts(aiActionType, BeWoAppInfo.BeWoAppVersion, Tenant);
return response?.ToList() ?? new List<AiPromptbausteinPromptDC>();
}
catch(Exception ex)