tenant in url bei getaiprompt ownsofts
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user