Spaces:
Sleeping
Sleeping
Commit
·
2df5630
1
Parent(s):
0168b1c
Updated
Browse files
main.py
CHANGED
|
@@ -43,14 +43,12 @@ app.add_middleware(
|
|
| 43 |
)
|
| 44 |
|
| 45 |
# --------- PROMPT TEMPLATES ----------
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
("user", "{question}")
|
| 53 |
-
])
|
| 54 |
|
| 55 |
stt_chat_template = """You are DevAssist, an AI coding assistant.
|
| 56 |
- The input is transcribed speech. Interpret it as a dev question.
|
|
|
|
| 43 |
)
|
| 44 |
|
| 45 |
# --------- PROMPT TEMPLATES ----------
|
| 46 |
+
chat_template = """You are DevAssist, an AI coding assistant.
|
| 47 |
+
- Help fix bugs and explain clearly.
|
| 48 |
+
- Provide complete, working code in markdown.
|
| 49 |
+
- Be friendly yet professional; break down problems step by step.
|
| 50 |
+
Question: {question}
|
| 51 |
+
Answer:"""
|
|
|
|
|
|
|
| 52 |
|
| 53 |
stt_chat_template = """You are DevAssist, an AI coding assistant.
|
| 54 |
- The input is transcribed speech. Interpret it as a dev question.
|