streamlit calling llm function twice on second chat propmpt
- User
streamlit calling llm function twice on second chat propmpt
Assistant
It looks like you are experiencing an issue with Streamlit where the LLM function is being called twice when you attempt to chat with the model for a second time. This is likely due to the way that Streamlit handles the interaction between the user and the model.
When you first call the function, Streamlit creates a new instance of the function and passes it the and parameters. This instance is then used to generate the output for the first chat prompt.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.