Spaces:
Paused
Paused
Commit
·
284f112
1
Parent(s):
30c0fe5
Session 1 assignment homework
Browse files
app.py
CHANGED
|
@@ -11,18 +11,18 @@ from dotenv import load_dotenv
|
|
| 11 |
load_dotenv()
|
| 12 |
|
| 13 |
# ChatOpenAI Templates
|
| 14 |
-
system_template = """You are a helpful assistant who always speaks
|
| 15 |
"""
|
| 16 |
|
| 17 |
user_template = """{input}
|
| 18 |
-
Think through your response step by step.
|
| 19 |
"""
|
| 20 |
|
| 21 |
|
| 22 |
@cl.on_chat_start # marks a function that will be executed at the start of a user session
|
| 23 |
async def start_chat():
|
| 24 |
settings = {
|
| 25 |
-
"model": "gpt-
|
| 26 |
"temperature": 0,
|
| 27 |
"max_tokens": 500,
|
| 28 |
"top_p": 1,
|
|
|
|
| 11 |
load_dotenv()
|
| 12 |
|
| 13 |
# ChatOpenAI Templates
|
| 14 |
+
system_template = """You are a helpful programming assistant who always speaks direct and succinctly!
|
| 15 |
"""
|
| 16 |
|
| 17 |
user_template = """{input}
|
| 18 |
+
Think through your response step by step before answering.
|
| 19 |
"""
|
| 20 |
|
| 21 |
|
| 22 |
@cl.on_chat_start # marks a function that will be executed at the start of a user session
|
| 23 |
async def start_chat():
|
| 24 |
settings = {
|
| 25 |
+
"model": "gpt-4o",
|
| 26 |
"temperature": 0,
|
| 27 |
"max_tokens": 500,
|
| 28 |
"top_p": 1,
|