Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -26,12 +26,12 @@ async def generate_insight(request: RoadmapLogs):
|
|
26 |
Always start with a rhetorical question in the case of negative feedback and a compliment in case of positive feedback.
|
27 |
Make sure to instill a sense of guilt in them while also acting as a benevolent guide.
|
28 |
Make sure the insight reflects their approach, score and behavior accordingly.
|
|
|
29 |
MAKE SURE YOU THAT YOU GIVE ME ONLY TWO THINGS 1) AI Insight Heading and 2) The AI Insight description.
|
30 |
MAKE SURE YOU FOLLOW THE FOLLOWING OUTPUT STRCUTURE:
|
31 |
-
|
32 |
The heading should be a very short 2,3 line summary of the description
|
33 |
-
output_structure
|
34 |
-
'AI Insight Heading:AI Insight Description'
|
35 |
"""
|
36 |
# Call OpenAI API
|
37 |
response = openai.ChatCompletion.create(
|
|
|
26 |
Always start with a rhetorical question in the case of negative feedback and a compliment in case of positive feedback.
|
27 |
Make sure to instill a sense of guilt in them while also acting as a benevolent guide.
|
28 |
Make sure the insight reflects their approach, score and behavior accordingly.
|
29 |
+
If you dont recieve any logs then motivate the user.
|
30 |
MAKE SURE YOU THAT YOU GIVE ME ONLY TWO THINGS 1) AI Insight Heading and 2) The AI Insight description.
|
31 |
MAKE SURE YOU FOLLOW THE FOLLOWING OUTPUT STRCUTURE:
|
|
|
32 |
The heading should be a very short 2,3 line summary of the description
|
33 |
+
output_structure:
|
34 |
+
'"AI Insight Heading":"AI Insight Description"'
|
35 |
"""
|
36 |
# Call OpenAI API
|
37 |
response = openai.ChatCompletion.create(
|