Spaces:
Sleeping
Sleeping
LordFarquaad42
commited on
let gpt know to use latex
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ if st.button('Start Scheming') & (access_key != "") & (user_question != ""):
|
|
56 |
response = openai_client.chat.completions.create(
|
57 |
model="gpt-3.5-turbo",
|
58 |
messages=[
|
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}"}
|
|
|
56 |
response = openai_client.chat.completions.create(
|
57 |
model="gpt-3.5-turbo",
|
58 |
messages=[
|
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. Surround Latex equations in dollar signs as such Inline equation: $equation$ & Display equation: $$equation$$"},
|
60 |
{"role": "user", "content": user_question},
|
61 |
{"role": "assistant", "content": str(documents)},
|
62 |
{"role": "user", "content": f"Conversation History: {history}"}
|