for response in openai.ChatCompletion.create(
model=st.session_state["openai_model"],
messages=[
{"role": m["role"], "content": m["content"]}
for m in st.session_state.messages
],
This is the block of code that is not working
New contributor
Iqra Zafar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.