Chainlit / chainlit

Build Conversational AI in minutes ⚡️
https://docs.chainlit.io
Apache License 2.0
6.67k stars 860 forks source link

Dynamically change placeholder text in input box #744

Open pchalasani opened 6 months ago

pchalasani commented 6 months ago

A common scenario is where we want to give custom instructions in the chat input box at the bottom. Currently this is hardcoded .chainlit/translations/en-US.json as ...inputBox.input.placeholder = "..."

A way to customize this from Python code would be very useful.

shayan09 commented 4 months ago

You can change the placeholder message from .chainlit/translations/en-US.json

nmstoker commented 3 months ago

@shayan09 I think you may have misread what is being asked here.

What you stated is clearly known as it's referenced in the question and doing what you mention is not dynamic, which is the whole point of this question.