diff --git a/vertexai-google-demo/src_hd/com/axonivy/connector/vertexai/chatWithAi/chatWithAi.xhtml b/vertexai-google-demo/src_hd/com/axonivy/connector/vertexai/chatWithAi/chatWithAi.xhtml index b82357a..d37c4d5 100644 --- a/vertexai-google-demo/src_hd/com/axonivy/connector/vertexai/chatWithAi/chatWithAi.xhtml +++ b/vertexai-google-demo/src_hd/com/axonivy/connector/vertexai/chatWithAi/chatWithAi.xhtml @@ -13,10 +13,21 @@ - - + +
+ + +
+
+
+ +
+
diff --git a/vertexai-google-demo/webContent/layouts/styles/chatwithai.css b/vertexai-google-demo/webContent/layouts/styles/chatwithai.css index ef81f0c..86ee067 100644 --- a/vertexai-google-demo/webContent/layouts/styles/chatwithai.css +++ b/vertexai-google-demo/webContent/layouts/styles/chatwithai.css @@ -55,4 +55,19 @@ display: flex; justify-content: space-between; margin-top: 10px; +} + +.cancel-error-dialog-button { + display: flex; + justify-content: flex-end; +} + +.icon-error-message { + display: flex; + align-items: center; + gap: 10px; +} + +.error-message { + font-size: 14px; } \ No newline at end of file diff --git a/vertexai-google/src/com/axonivy/connector/vertexai/utils/GeminiDataRequestServiceUtils.java b/vertexai-google/src/com/axonivy/connector/vertexai/utils/GeminiDataRequestServiceUtils.java index f592e07..a4e4023 100644 --- a/vertexai-google/src/com/axonivy/connector/vertexai/utils/GeminiDataRequestServiceUtils.java +++ b/vertexai-google/src/com/axonivy/connector/vertexai/utils/GeminiDataRequestServiceUtils.java @@ -31,7 +31,7 @@ public class GeminiDataRequestServiceUtils { public static InputStream getInputStream(String keyFilePath) throws IOException { if (StringUtils.isBlank(keyFilePath)) { - throw new IOException("VertexAi credential file path is empty"); + throw new IOException("Vertex AI credential file path is missing. Please provide it and try again!"); } try {