Chat_Input Value Parameter

Currently we are using st.text_area to optionally fill an example prompt. We have a separate page filled with example prompts organized by categories that the user can select. The code looks as follows and works fine switching and filling between pages:

user_input = st.text_area(“Ask question:”,value=st.session_state[“example_prompt”], key="question”)

However, we would like to standardize around the ChatGPT interface using st.chat_input and st.chat_message. We appreciate the response in the thread Programmatically update text in chat_input but looking to see if there are plans to update chat_input with a value option and behave like text_area .

Thanks!

There is a feature request about this that followed this thread.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.