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
fix: Handle empty, null, and missing responses from Google Gemini
- Handle cases where the Google Gemini API returns an empty, null, or no response.
- Improve error handling and provide more informative error messages.
- Update the `google_ai` command to use the `get-input` command for handling user input, similar to the `gcal add` command.
- Add a new command `math sample` to generate a random sample from a given set, with optional parameters for sample size, replacement, and probabilities.
- Improve the `gcal ai` command to handle cases where the title of a calendar event is written in a naming convention.
- Update the command to rewrite the title in normal writing using the `google_ai` command.
letprompt=$request+".\nPlease consider that today's date is"+$date_now
1788
+
letprompt=$request+".\nPor favor considerar que la fecha de hoy es"+$date_now
1785
1789
1786
1790
#get data to make query to gcal
1787
1791
letgcal_query= (
@@ -1832,7 +1836,7 @@ export def "gcal ai" [
1832
1836
letwhere=$gcal_query|getwhere
1833
1837
letduration=$gcal_query|getduration
1834
1838
1835
-
lettitle=google_ai ("if the next text is using a naming convention, rewrite it in normal writing in the original language, i.e., separate words by a space. Only return your response without any commentary on your part, in plain text without any formatting. The text: "+ ($gcal_query|gettitle ))
1839
+
lettitle=google_ai ("if the next text is using a naming convention, rewrite it in normal writing in the original language, i.e., separate words by a space. Only return your response without any commentary on your part, in plain text without any formatting. The text: "+ ($gcal_query|gettitle ))|str trim
0 commit comments