Skip to content

Commit

Permalink
Fix: AI 연결 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
sayyyho committed Sep 7, 2024
1 parent 907bd66 commit e49fdc5
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/pages/ChatBot/ChatBot.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const ChatBot = () => {
handleResizeHeight();

try {
const response = await postAIBot({ message });
const response = await postAIBot(message);
if (response.data.data) {
const botResponse = {
text: response.data.polishedMessage,
Expand Down Expand Up @@ -87,6 +87,18 @@ export const ChatBot = () => {
<EndButton>끝내기</EndButton>
</Header>
<S.ChattingZone>
<S.ResBox key={index}>
<S.ResZone>
반갑습니다 ☺️{localStorage.getItem("relation")}모드입니다.
</S.ResZone>
<S.ResImage
style={{
backgroundImage: `url(${BOT_IMG})`,
backgroundSize: "cover",
backgroundPosition: "center",
}}
></S.ResImage>
</S.ResBox>
{messages.map((message, index) =>
message.isMine ? (
<S.SendZone key={index}>{message.text}</S.SendZone>
Expand Down

0 comments on commit e49fdc5

Please sign in to comment.