You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- update daily quote generator to randomize creativity and output erroneous responses
gpt commit message:
- added random creativity level generation when user does not select it
- updated quote generation logic to ensure category or creativity values are set randomly if not chosen by the user
- improved error handling to log full response when JSON parsing fails
- modified prompt construction to enhance quote output
- updated UI elements to show error details and ensure proper visibility states
prompt for receiving the commit message:
```
Please write a concise but technical accurate commit message in the form of bullet points with lowercase first letters in a code block for the attached changes. You might use backticks if suitable.
```
@@ -151,7 +164,7 @@ <h2 class="font-semibold text-lg">How to Use Daily Quote Generator</h2>
151
164
toggleButtonState();
152
165
153
166
constbotMessage=`I am currently functioning as the Daily Quote Generator API. I will provide responses in this JSON format: {"quote":"generated quote", "author":"quote author"}`;
154
-
constuserMessage=`Generate a ${category}quote${author ? ` by ${author}` : ''}.`;
167
+
constuserMessage=`Generate a quote${author ? ` by ${author}` : ` for the category ${category}`}. DO NOT use the word "${category}" in the quote. Focus on making the quote sound very profound.`;
0 commit comments