Skip to content

Commit f9a3e33

Browse files
authored
Update on-chat-start.mdx (#257)
Fix `KeyError: 'content'` Message result should be referencing `output`
1 parent 8fb27bd commit f9a3e33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api-reference/lifecycle-hooks/on-chat-start.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ async def main():
1515
res = await AskUserMessage(content="What is your name?", timeout=30).send()
1616
if res:
1717
await Message(
18-
content=f"Your name is: {res['content']}.\nChainlit installation is working!\nYou can now start building your own chainlit apps!",
18+
content=f"Your name is: {res['output']}.\nChainlit installation is working!\nYou can now start building your own chainlit apps!",
1919
).send()
2020
```

0 commit comments

Comments
 (0)