From 03312a7f98488eabeec611d8aba4f5e5b92c8f07 Mon Sep 17 00:00:00 2001 From: ashakirin Date: Wed, 19 Nov 2025 18:55:56 +0100 Subject: [PATCH] Fixed chat template --- .../agent/controller/WebViewController.java | 2 +- .../resources/templates/chat-working.html | 585 ++++++++++++++++++ .../agent/controller/WebViewController.java | 2 +- .../resources/templates/chat-working.html | 585 ++++++++++++++++++ .../agent/controller/WebViewController.java | 2 +- .../resources/templates/chat-working.html | 585 ++++++++++++++++++ 6 files changed, 1758 insertions(+), 3 deletions(-) create mode 100644 samples/quality-assurance/ai-agent/src/main/resources/templates/chat-working.html create mode 100644 samples/security/apikey/ai-agent/src/main/resources/templates/chat-working.html create mode 100644 samples/security/oauth/ai-agent/src/main/resources/templates/chat-working.html diff --git a/samples/quality-assurance/ai-agent/src/main/java/com/example/ai/agent/controller/WebViewController.java b/samples/quality-assurance/ai-agent/src/main/java/com/example/ai/agent/controller/WebViewController.java index 0dcef751..09ae5e05 100644 --- a/samples/quality-assurance/ai-agent/src/main/java/com/example/ai/agent/controller/WebViewController.java +++ b/samples/quality-assurance/ai-agent/src/main/java/com/example/ai/agent/controller/WebViewController.java @@ -7,6 +7,6 @@ public class WebViewController { @GetMapping("/") public String index() { - return "chat-working"; + return "chat"; } } diff --git a/samples/quality-assurance/ai-agent/src/main/resources/templates/chat-working.html b/samples/quality-assurance/ai-agent/src/main/resources/templates/chat-working.html new file mode 100644 index 00000000..10be7942 --- /dev/null +++ b/samples/quality-assurance/ai-agent/src/main/resources/templates/chat-working.html @@ -0,0 +1,585 @@ + + + + + + AI Agent + + + + + + +
+ +
+
+
+

🤖 AI Agent

+
+ +
+

Chat with our AI Agent to help you with your questions!

+
+ + +
+
+
+
+ 🤖 +
+
+

Welcome to the AI Agent! How can I help you today?

+
+
+ +
+ + +
+
+ + + + +
+
+
+
+ + +
+ × + +
+ + + + \ No newline at end of file diff --git a/samples/security/apikey/ai-agent/src/main/java/com/example/ai/agent/controller/WebViewController.java b/samples/security/apikey/ai-agent/src/main/java/com/example/ai/agent/controller/WebViewController.java index 0dcef751..09ae5e05 100644 --- a/samples/security/apikey/ai-agent/src/main/java/com/example/ai/agent/controller/WebViewController.java +++ b/samples/security/apikey/ai-agent/src/main/java/com/example/ai/agent/controller/WebViewController.java @@ -7,6 +7,6 @@ public class WebViewController { @GetMapping("/") public String index() { - return "chat-working"; + return "chat"; } } diff --git a/samples/security/apikey/ai-agent/src/main/resources/templates/chat-working.html b/samples/security/apikey/ai-agent/src/main/resources/templates/chat-working.html new file mode 100644 index 00000000..10be7942 --- /dev/null +++ b/samples/security/apikey/ai-agent/src/main/resources/templates/chat-working.html @@ -0,0 +1,585 @@ + + + + + + AI Agent + + + + + + +
+ +
+
+
+

🤖 AI Agent

+
+ +
+

Chat with our AI Agent to help you with your questions!

+
+ + +
+
+
+
+ 🤖 +
+
+

Welcome to the AI Agent! How can I help you today?

+
+
+ +
+ + +
+
+ + + + +
+
+
+
+ + +
+ × + +
+ + + + \ No newline at end of file diff --git a/samples/security/oauth/ai-agent/src/main/java/com/example/ai/agent/controller/WebViewController.java b/samples/security/oauth/ai-agent/src/main/java/com/example/ai/agent/controller/WebViewController.java index 0dcef751..09ae5e05 100644 --- a/samples/security/oauth/ai-agent/src/main/java/com/example/ai/agent/controller/WebViewController.java +++ b/samples/security/oauth/ai-agent/src/main/java/com/example/ai/agent/controller/WebViewController.java @@ -7,6 +7,6 @@ public class WebViewController { @GetMapping("/") public String index() { - return "chat-working"; + return "chat"; } } diff --git a/samples/security/oauth/ai-agent/src/main/resources/templates/chat-working.html b/samples/security/oauth/ai-agent/src/main/resources/templates/chat-working.html new file mode 100644 index 00000000..10be7942 --- /dev/null +++ b/samples/security/oauth/ai-agent/src/main/resources/templates/chat-working.html @@ -0,0 +1,585 @@ + + + + + + AI Agent + + + + + + +
+ +
+
+
+

🤖 AI Agent

+
+ +
+

Chat with our AI Agent to help you with your questions!

+
+ + +
+
+
+
+ 🤖 +
+
+

Welcome to the AI Agent! How can I help you today?

+
+
+ +
+ + +
+
+ + + + +
+
+
+
+ + +
+ × + +
+ + + + \ No newline at end of file