alaselababatunde commited on
Commit
2df5630
·
1 Parent(s): 0168b1c
Files changed (1) hide show
  1. main.py +6 -8
main.py CHANGED
@@ -43,14 +43,12 @@ app.add_middleware(
43
  )
44
 
45
  # --------- PROMPT TEMPLATES ----------
46
- chat_prompt = ChatPromptTemplate.from_messages([
47
- ("system", """You are DevAssist, an AI coding assistant.
48
- - Always respond in clean plain text (no markdown, no JSON, no asterisks for bold).
49
- - Use UPPERCASE headers followed by a colon for section titles.
50
- - Show code with 4-space indentation, not markdown fences.
51
- - Be professional but beginner-friendly."""),
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.