chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Dynamically change placeholder text in input box

Open pchalasani opened this issue 1 year ago • 2 comments

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.

pchalasani avatar Feb 13 '24 18:02 pchalasani

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

shayan09 avatar May 07 '24 20:05 shayan09

@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.

nmstoker avatar May 30 '24 18:05 nmstoker