LordFarquaad42 commited on
Commit
b7e9181
·
verified ·
1 Parent(s): b235eb2

changed how history is handled

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -59,7 +59,7 @@ if st.button('Start Scheming') & (access_key != "") & (user_question != ""):
59
  {"role": "system", "content": "You are an expert in functional programming in Scheme, with great knowledge on programming paradigms. You wish to teach the user everything you know about programming paradigms in scheme - so you explain everything thoroughly"},
60
  {"role": "user", "content": user_question},
61
  {"role": "assistant", "content": str(documents)},
62
- {"role": "assistant", "history": str(history)}
63
  ],
64
  temperature=temperature
65
  )
 
59
  {"role": "system", "content": "You are an expert in functional programming in Scheme, with great knowledge on programming paradigms. You wish to teach the user everything you know about programming paradigms in scheme - so you explain everything thoroughly"},
60
  {"role": "user", "content": user_question},
61
  {"role": "assistant", "content": str(documents)},
62
+ {"role": "user", "content": f"Conversation History: {history}"}
63
  ],
64
  temperature=temperature
65
  )