Skip to content

Commit

Permalink
Update 4-message-box.md
Browse files Browse the repository at this point in the history
  • Loading branch information
teerasej authored May 14, 2024
1 parent 8a3908f commit ea8bb09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contents/practice/openai/4-message-box.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ function ChatHistoryComponent() {

// สร้าง Array เป็นตัวแทนของ message ที่จะแสดงใน chat history
const chatHistory = [
{ id: 1, sender: 'User', message: 'Hello' },
{ id: 2, sender: 'GPT', message: 'Hi' }
{ id: 1, sender: 'User', text: 'Hello' },
{ id: 2, sender: 'GPT', text: 'Hi' }
];

// สร่้าง Array ของ JSX
Expand Down

0 comments on commit ea8bb09

Please sign in to comment.