Merged PR 142: Add account string in model
Add account string in model
This commit is contained in:
@@ -106,6 +106,7 @@ public class ScenarioController {
|
||||
ScenarioExecution scenarioExecution = scenarioExecutionRepository.findById(id).get();
|
||||
String apiKey = scenarioExecution.getScenario().getAiModel().getApiKey();
|
||||
String endpoint = scenarioExecution.getScenario().getAiModel().getEndpoint();
|
||||
String fullPathEndpoint = scenarioExecution.getScenario().getAiModel().getFull_path_endpoint();
|
||||
List<Project> availableForProject = scenarioExecution.getScenario().getAvailableForProjects();
|
||||
List<Project> availableForApplication = scenarioExecution.getScenario().getAvailableForApplications();
|
||||
if (apiKey != null) {
|
||||
@@ -114,6 +115,9 @@ public class ScenarioController {
|
||||
if (endpoint != null) {
|
||||
scenarioExecution.getScenario().getAiModel().setEndpoint("**********");
|
||||
}
|
||||
if (fullPathEndpoint != null) {
|
||||
scenarioExecution.getScenario().getAiModel().setFull_path_endpoint("**********");
|
||||
}
|
||||
if (availableForProject != null) {
|
||||
scenarioExecution.getScenario().setAvailableForProjects(null);
|
||||
}
|
||||
|
||||
@@ -39,5 +39,6 @@ public class Scenario {
|
||||
private String outputType;
|
||||
private boolean canvasEnabled=false;
|
||||
private boolean chatEnabled=false;
|
||||
private String account;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user