themeetjani commited on
Commit
e38057a
1 Parent(s): 6505bf3

Update pages/AI_Chatbot.py

Browse files
Files changed (1) hide show
  1. pages/AI_Chatbot.py +1 -1
pages/AI_Chatbot.py CHANGED
@@ -21,7 +21,7 @@ if prompt := st.chat_input("What is up?"):
21
  st.markdown(prompt)
22
 
23
  with st.chat_message("assistant"):
24
- stream = openai.chat.completions.create(
25
  model=st.session_state["openai_model"],
26
  messages=[
27
  {"role": m["role"], "content": m["content"]}
 
21
  st.markdown(prompt)
22
 
23
  with st.chat_message("assistant"):
24
+ stream = openai.ChatCompletion.create(
25
  model=st.session_state["openai_model"],
26
  messages=[
27
  {"role": m["role"], "content": m["content"]}