Skip to content

Commit

Permalink
1744 - added icon and minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marko-kriskovic authored and ivicac committed Dec 18, 2024
1 parent 5cb6f74 commit 896d41c
Show file tree
Hide file tree
Showing 4 changed files with 717 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,71 +72,71 @@ public SummarizeTextAction(ApplicationProperties.Ai.Component component) {
.label("Model")
.description("ID of the model to use.")
.options(AmazonBedrockConstants.ANTHROPIC2_MODELS)
.displayCondition("connectionProvider == 0")
.displayCondition("modelProvider == 0")
.required(true),
string(MODEL)
.label("Model")
.description("ID of the model to use.")
.options(AmazonBedrockConstants.ANTHROPIC3_MODELS)
.displayCondition("connectionProvider == 1")
.displayCondition("modelProvider == 1")
.required(true),
string(MODEL)
.label("Model")
.description("ID of the model to use.")
.options(AmazonBedrockConstants.COHERE_MODELS)
.displayCondition("connectionProvider == 2")
.displayCondition("modelProvider == 2")
.required(true),
string(MODEL)
.label("Model")
.description("ID of the model to use.")
.options(AmazonBedrockConstants.JURASSIC2_MODELS)
.displayCondition("connectionProvider == 3")
.displayCondition("modelProvider == 3")
.required(true),
string(MODEL)
.label("Model")
.description("ID of the model to use.")
.options(AmazonBedrockConstants.LLAMA_MODELS)
.displayCondition("connectionProvider == 4")
.displayCondition("modelProvider == 4")
.required(true),
string(MODEL)
.label("Model")
.description("ID of the model to use.")
.options(AmazonBedrockConstants.TITAN_MODELS)
.displayCondition("connectionProvider == 5")
.displayCondition("modelProvider == 5")
.required(true),
string(MODEL)
.label("Model")
.description("ID of the model to use.")
.options(AnthropicConstants.MODELS)
.displayCondition("connectionProvider == 6")
.displayCondition("modelProvider == 6")
.required(true),
string(MODEL)
.label("Model")
.description("ID of the model to use.")
.displayCondition("connectionProvider >= 7 && connectionProvider <= 9")
.displayCondition("modelProvider >= 7 && modelProvider <= 9")
.required(true),
string(MODEL)
.label("URL")
.description("Url of the inference endpoint.")
.displayCondition("connectionProvider == 10")
.displayCondition("modelProvider == 10")
.required(true),
string(MODEL)
.label("Model")
.description("ID of the model to use.")
.options(MistralConstants.MODELS)
.displayCondition("connectionProvider == 11")
.displayCondition("modelProvider == 11")
.required(true),
string(MODEL)
.label("Model")
.description("ID of the model to use.")
.options(OpenAIConstants.MODELS)
.displayCondition("connectionProvider == 12")
.displayCondition("modelProvider == 12")
.required(true),
string(MODEL)
.label("Model")
.description("ID of the model to use.")
.options(VertexGeminiConstants.MODELS)
.displayCondition("connectionProvider == 13")
.displayCondition("modelProvider == 13")
.required(true),
string(TEXT)
.label("Text")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import com.bytechef.config.ApplicationProperties;
import com.bytechef.platform.component.definition.AbstractActionDefinitionWrapper;
import com.bytechef.platform.component.definition.ParametersFactory;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
Expand All @@ -55,6 +56,7 @@ public class AiTextAnalysisActionDefinition extends AbstractActionDefinitionWrap

private final ApplicationProperties.Ai.Component component;

@SuppressFBWarnings("EI")
public AiTextAnalysisActionDefinition(ActionDefinition actionDefinition,
ApplicationProperties.Ai.Component component) {
super(actionDefinition);
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 896d41c

Please sign in to comment.