Spaces:
Sleeping
Sleeping
LordFarquaad42
commited on
changed how history is handled
Browse files
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": "
|
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 |
)
|