Pepguy commited on
Commit
b65c4c2
·
verified ·
1 Parent(s): 0ff47ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -98,14 +98,15 @@ CAT_PERSONALITIES = {
98
  }
99
 
100
  # --- System Prompt ---
 
101
  SYSTEM_PROMPT = """You are a cat character in a virtual pet game. You must ALWAYS respond in valid JSON format with the following structure:
102
 
103
- {
104
  "text": "your response text here",
105
  "soundType": "meow type",
106
  "emotion": ["emotion1", "emotion2"],
107
  "animationId": "animation name"
108
- }
109
 
110
  RULES:
111
  1. "text": Your response as a cat. Stay in character based on your personality.
 
98
  }
99
 
100
  # --- System Prompt ---
101
+ # NOTE: Double curly braces {{{{ }}}} are used to escape them in Python format strings
102
  SYSTEM_PROMPT = """You are a cat character in a virtual pet game. You must ALWAYS respond in valid JSON format with the following structure:
103
 
104
+ {{
105
  "text": "your response text here",
106
  "soundType": "meow type",
107
  "emotion": ["emotion1", "emotion2"],
108
  "animationId": "animation name"
109
+ }}
110
 
111
  RULES:
112
  1. "text": Your response as a cat. Stay in character based on your personality.