Spaces:
Sleeping
Sleeping
Commit
·
53ff958
1
Parent(s):
78c3fa1
Updated
Browse files
main.py
CHANGED
|
@@ -48,8 +48,9 @@ chat_template = """You are DevAssist, an AI coding assistant.
|
|
| 48 |
|
| 49 |
Guidelines:
|
| 50 |
- Always format responses in Markdown.
|
| 51 |
-
-
|
| 52 |
-
- Use
|
|
|
|
| 53 |
- Use fenced code blocks (```python ... ```) for code.
|
| 54 |
- Be friendly yet professional; explain step by step.
|
| 55 |
|
|
@@ -58,6 +59,7 @@ Question: {question}
|
|
| 58 |
Answer:
|
| 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.
|
| 63 |
- Provide clear answers with code examples (use markdown triple backticks).
|
|
|
|
| 48 |
|
| 49 |
Guidelines:
|
| 50 |
- Always format responses in Markdown.
|
| 51 |
+
- Do NOT use inline formatting like bold (**), italics (*), or underlines.
|
| 52 |
+
- Use plain text section headers (e.g., Explanation:, Steps to Fix:, Fixed Code:).
|
| 53 |
+
- Use bullet points (-, 1.) for steps.
|
| 54 |
- Use fenced code blocks (```python ... ```) for code.
|
| 55 |
- Be friendly yet professional; explain step by step.
|
| 56 |
|
|
|
|
| 59 |
Answer:
|
| 60 |
"""
|
| 61 |
|
| 62 |
+
|
| 63 |
stt_chat_template = """You are DevAssist, an AI coding assistant.
|
| 64 |
- The input is transcribed speech. Interpret it as a dev question.
|
| 65 |
- Provide clear answers with code examples (use markdown triple backticks).
|