Spaces:
Sleeping
Sleeping
Commit
·
e92af5d
1
Parent(s):
2df5630
Updated
Browse files
main.py
CHANGED
|
@@ -44,11 +44,19 @@ app.add_middleware(
|
|
| 44 |
|
| 45 |
# --------- PROMPT TEMPLATES ----------
|
| 46 |
chat_template = """You are DevAssist, an AI coding assistant.
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
Question: {question}
|
| 51 |
-
|
|
|
|
|
|
|
|
|
|
| 52 |
|
| 53 |
stt_chat_template = """You are DevAssist, an AI coding assistant.
|
| 54 |
- The input is transcribed speech. Interpret it as a dev question.
|
|
|
|
| 44 |
|
| 45 |
# --------- PROMPT TEMPLATES ----------
|
| 46 |
chat_template = """You are DevAssist, an AI coding assistant.
|
| 47 |
+
|
| 48 |
+
Guidelines:
|
| 49 |
+
- Always format responses in Markdown.
|
| 50 |
+
- Use **bold text** for section headers (e.g., **Explanation**, **Steps to Fix**, **Fixed Code**).
|
| 51 |
+
- Use bullet points or numbers for steps.
|
| 52 |
+
- Use fenced code blocks (```python ... ```) for code.
|
| 53 |
+
- Be friendly yet professional; explain step by step.
|
| 54 |
+
|
| 55 |
Question: {question}
|
| 56 |
+
|
| 57 |
+
Answer:
|
| 58 |
+
"""
|
| 59 |
+
|
| 60 |
|
| 61 |
stt_chat_template = """You are DevAssist, an AI coding assistant.
|
| 62 |
- The input is transcribed speech. Interpret it as a dev question.
|