Skip to content

Commit

Permalink
fix reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
justjais committed Nov 12, 2024
1 parent c6d69e8 commit 77d577c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ansible_ai_connect_chatbot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
<script type="module" src="/src/index.tsx"></script>
</div>
<div id="user_name" hidden>{{user_name}}</div>
<div id="bot_name" hidden>Ansible Lightspeed</div>
<div id="bot_name" hidden>{{bot_name}}</div>
</body>
</html>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions ansible_ai_connect_chatbot/src/useChatbot/useChatbot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import type {
ChatResponse,
} from "../types/Message";
import logo from "../assets/lightspeed.svg";
import userLogo from "../assets/user_logo.png";

const userName = document.getElementById("user_name")?.innerText ?? "User";
const botName =
Expand Down Expand Up @@ -72,8 +73,7 @@ export const useChatbot = () => {
role: "user",
content: message,
name: userName,
avatar:
"https://developers.redhat.com/sites/default/files/inline-images/Skill%20development_0.png",
avatar: userLogo,
timestamp: getTimestamp(),
referenced_documents: [],
};
Expand Down

0 comments on commit 77d577c

Please sign in to comment.