alaselababatunde commited on
Commit
e92af5d
·
1 Parent(s): 2df5630
Files changed (1) hide show
  1. main.py +12 -4
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
- - 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.
 
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.