diff --git a/extensions/raycast-gemini/CHANGELOG.md b/extensions/raycast-gemini/CHANGELOG.md index 93bedf333f0..a87bf9477ec 100644 --- a/extensions/raycast-gemini/CHANGELOG.md +++ b/extensions/raycast-gemini/CHANGELOG.md @@ -1,5 +1,13 @@ # Google Gemini Changelog +## [Gemini Flash 2.0 and More Customization] - 2025-01-02 + +Features: + +- ๐ Add new Models for Gemini 2.0 Flash Experimental, Gemini Experimental 1206, Gemini 2.0 Flash Thinking Experimental and LearnLM 1.5 Pro Experimental +- ๐งน Allow prompts to be customizable in Raycast Settings +- ๐ฏ๏ธ Add ability to add a default Translate language, and also ability to override with a parameter + ## [Add Translate Command] - 2024-09-02 More Features: diff --git a/extensions/raycast-gemini/package.json b/extensions/raycast-gemini/package.json index b0e0efec5dc..8ccce6b7710 100644 --- a/extensions/raycast-gemini/package.json +++ b/extensions/raycast-gemini/package.json @@ -6,7 +6,8 @@ "icon": "gemini-icon.png", "author": "EvanZhouDev", "contributors": [ - "ridemountainpig" + "ridemountainpig", + "d0zingcat" ], "categories": [ "Productivity", @@ -49,8 +50,32 @@ { "title": "Gemini 1.5 Flash", "value": "gemini-1.5-flash-latest" + }, + { + "title": "Gemini 2.0 Flash Experimental", + "value": "gemini-2.0-flash-exp" + }, + { + "title": "Gemini Experimental 1206", + "value": "gemini-exp-1206" + }, + { + "title": "Gemini 2.0 Flash Thinking Experimental", + "value": "gemini-2.0-flash-thinking-exp-1219" + }, + { + "title": "LearnLM 1.5 Pro Experimental", + "value": "learnlm-1.5-pro-experimental" } ] + }, + { + "name": "prompt", + "title": "System Prompt", + "description": "The prompt to use for this command.", + "type": "textfield", + "required": false, + "default": "You may be given a text or a query or a picture as input, please provide a detailed and informative response." } ] }, @@ -97,8 +122,32 @@ { "title": "Gemini 1.5 Flash", "value": "gemini-1.5-flash-latest" + }, + { + "title": "Gemini 2.0 Flash Experimental", + "value": "gemini-2.0-flash-exp" + }, + { + "title": "Gemini Experimental 1206", + "value": "gemini-exp-1206" + }, + { + "title": "Gemini 2.0 Flash Thinking Experimental", + "value": "gemini-2.0-flash-thinking-exp-1219" + }, + { + "title": "LearnLM 1.5 Pro Experimental", + "value": "learnlm-1.5-pro-experimental" } - ] + ] + }, + { + "name": "prompt", + "title": "System Prompt", + "description": "The prompt to use for this command.", + "type": "textfield", + "required": false, + "default": "Please analyze this screenshot and describe what you see. Include any relevant details about the content, layout, and any text or important elements visible in the image." } ] }, @@ -137,8 +186,33 @@ { "title": "Gemini 1.5 Flash", "value": "gemini-1.5-flash-latest" + }, + { + "title": "Gemini 2.0 Flash Experimental", + "value": "gemini-2.0-flash-exp" + }, + { + "title": "Gemini Experimental 1206", + "value": "gemini-exp-1206" + }, + { + "title": "Gemini 2.0 Flash Thinking Experimental", + "value": "gemini-2.0-flash-thinking-exp-1219" + }, + { + "title": "LearnLM 1.5 Pro Experimental", + "value": "learnlm-1.5-pro-experimental" } + ] + }, + { + "name": "prompt", + "title": "System Prompt", + "description": "The prompt to use for this command.", + "type": "textfield", + "required": false, + "default": "Given the selected text or my query, please provide a detailed and informative response." } ] }, @@ -168,8 +242,33 @@ { "title": "Gemini 1.5 Flash", "value": "gemini-1.5-flash-latest" + }, + { + "title": "Gemini 2.0 Flash Experimental", + "value": "gemini-2.0-flash-exp" + }, + { + "title": "Gemini Experimental 1206", + "value": "gemini-exp-1206" + }, + { + "title": "Gemini 2.0 Flash Thinking Experimental", + "value": "gemini-2.0-flash-thinking-exp-1219" + }, + { + "title": "LearnLM 1.5 Pro Experimental", + "value": "learnlm-1.5-pro-experimental" } + ] + }, + { + "name": "prompt", + "title": "System Prompt", + "description": "The prompt to use for this command.", + "type": "textfield", + "required": false, + "default": "Summarize the given text." } ] }, @@ -199,8 +298,33 @@ { "title": "Gemini 1.5 Flash", "value": "gemini-1.5-flash-latest" + }, + { + "title": "Gemini 2.0 Flash Experimental", + "value": "gemini-2.0-flash-exp" + }, + { + "title": "Gemini Experimental 1206", + "value": "gemini-exp-1206" + }, + { + "title": "Gemini 2.0 Flash Thinking Experimental", + "value": "gemini-2.0-flash-thinking-exp-1219" + }, + { + "title": "LearnLM 1.5 Pro Experimental", + "value": "learnlm-1.5-pro-experimental" } + ] + }, + { + "name": "prompt", + "title": "System Prompt", + "description": "The prompt to use for this command.", + "type": "textfield", + "required": false, + "default": "Explain the following text as best as you can." } ] }, @@ -230,8 +354,33 @@ { "title": "Gemini 1.5 Flash", "value": "gemini-1.5-flash-latest" + }, + { + "title": "Gemini 2.0 Flash Experimental", + "value": "gemini-2.0-flash-exp" + }, + { + "title": "Gemini Experimental 1206", + "value": "gemini-exp-1206" + }, + { + "title": "Gemini 2.0 Flash Thinking Experimental", + "value": "gemini-2.0-flash-thinking-exp-1219" + }, + { + "title": "LearnLM 1.5 Pro Experimental", + "value": "learnlm-1.5-pro-experimental" } + ] + }, + { + "name": "prompt", + "title": "System Prompt", + "description": "The prompt to use for this command.", + "type": "textfield", + "required": false, + "default": "Add comments to the given code. ONLY return the commented code and nothing else." } ] }, @@ -261,8 +410,33 @@ { "title": "Gemini 1.5 Flash", "value": "gemini-1.5-flash-latest" + }, + { + "title": "Gemini 2.0 Flash Experimental", + "value": "gemini-2.0-flash-exp" + }, + { + "title": "Gemini Experimental 1206", + "value": "gemini-exp-1206" + }, + { + "title": "Gemini 2.0 Flash Thinking Experimental", + "value": "gemini-2.0-flash-thinking-exp-1219" + }, + { + "title": "LearnLM 1.5 Pro Experimental", + "value": "learnlm-1.5-pro-experimental" } + ] + }, + { + "name": "prompt", + "title": "System Prompt", + "description": "The prompt to use for this command.", + "type": "textfield", + "required": false, + "default": "Make the following text seem more friendly. ONLY return the modified text and nothing else." } ] }, @@ -292,8 +466,33 @@ { "title": "Gemini 1.5 Flash", "value": "gemini-1.5-flash-latest" + }, + { + "title": "Gemini 2.0 Flash Experimental", + "value": "gemini-2.0-flash-exp" + }, + { + "title": "Gemini Experimental 1206", + "value": "gemini-exp-1206" + }, + { + "title": "Gemini 2.0 Flash Thinking Experimental", + "value": "gemini-2.0-flash-thinking-exp-1219" + }, + { + "title": "LearnLM 1.5 Pro Experimental", + "value": "learnlm-1.5-pro-experimental" } + ] + }, + { + "name": "prompt", + "title": "System Prompt", + "description": "The prompt to use for this command.", + "type": "textfield", + "required": false, + "default": "In the following text, change it to use advanced vocabulary but do not overuse it. Make sure to use proper grammar and spell check thoroughly. Show expertise in the subject provided, but do not add any extra information. Try to keep your response at the same length of words as the original. ONLY return the modified text and nothing else." } ] }, @@ -323,8 +522,33 @@ { "title": "Gemini 1.5 Flash", "value": "gemini-1.5-flash-latest" + }, + { + "title": "Gemini 2.0 Flash Experimental", + "value": "gemini-2.0-flash-exp" + }, + { + "title": "Gemini Experimental 1206", + "value": "gemini-exp-1206" + }, + { + "title": "Gemini 2.0 Flash Thinking Experimental", + "value": "gemini-2.0-flash-thinking-exp-1219" + }, + { + "title": "LearnLM 1.5 Pro Experimental", + "value": "learnlm-1.5-pro-experimental" } + ] + }, + { + "name": "prompt", + "title": "System Prompt", + "description": "The prompt to use for this command.", + "type": "textfield", + "required": false, + "default": "Find one synonym for the given word. Only return that the synonym, and add nothing else. Keep the casing of the word the same. Your response should only have ONE WORD" } ] }, @@ -354,8 +578,33 @@ { "title": "Gemini 1.5 Flash", "value": "gemini-1.5-flash-latest" + }, + { + "title": "Gemini 2.0 Flash Experimental", + "value": "gemini-2.0-flash-exp" + }, + { + "title": "Gemini Experimental 1206", + "value": "gemini-exp-1206" + }, + { + "title": "Gemini 2.0 Flash Thinking Experimental", + "value": "gemini-2.0-flash-thinking-exp-1219" + }, + { + "title": "LearnLM 1.5 Pro Experimental", + "value": "learnlm-1.5-pro-experimental" } + ] + }, + { + "name": "prompt", + "title": "System Prompt", + "description": "The prompt to use for this command.", + "type": "textfield", + "required": false, + "default": "Fix the grammar in the following text. Try to keep all of the words from the given text and try to only add punctuation and correct any spelling errors. ONLY return the modified text and nothing else." } ] }, @@ -385,8 +634,33 @@ { "title": "Gemini 1.5 Flash", "value": "gemini-1.5-flash-latest" + }, + { + "title": "Gemini 2.0 Flash Experimental", + "value": "gemini-2.0-flash-exp" + }, + { + "title": "Gemini Experimental 1206", + "value": "gemini-exp-1206" + }, + { + "title": "Gemini 2.0 Flash Thinking Experimental", + "value": "gemini-2.0-flash-thinking-exp-1219" + }, + { + "title": "LearnLM 1.5 Pro Experimental", + "value": "learnlm-1.5-pro-experimental" } + ] + }, + { + "name": "prompt", + "title": "System Prompt", + "description": "The prompt to use for this command.", + "type": "textfield", + "required": false, + "default": "Make the following text longer without providing any extra information than what's given. ONLY return the elongated text and nothing else." } ] }, @@ -416,8 +690,33 @@ { "title": "Gemini 1.5 Flash", "value": "gemini-1.5-flash-latest" + }, + { + "title": "Gemini 2.0 Flash Experimental", + "value": "gemini-2.0-flash-exp" + }, + { + "title": "Gemini Experimental 1206", + "value": "gemini-exp-1206" + }, + { + "title": "Gemini 2.0 Flash Thinking Experimental", + "value": "gemini-2.0-flash-thinking-exp-1219" + }, + { + "title": "LearnLM 1.5 Pro Experimental", + "value": "learnlm-1.5-pro-experimental" } + ] + }, + { + "name": "prompt", + "title": "System Prompt", + "description": "The prompt to use for this command.", + "type": "textfield", + "required": false, + "default": "Make the following text shorter while keeping the core idea. ONLY return the shortened text and nothing else." } ] }, @@ -432,7 +731,7 @@ "name": "TranslateLanguage", "placeholder": "Translate Language", "type": "text", - "required": true + "required": false } ], "preferences": [ @@ -455,8 +754,41 @@ { "title": "Gemini 1.5 Flash", "value": "gemini-1.5-flash-latest" + }, + { + "title": "Gemini 2.0 Flash Experimental", + "value": "gemini-2.0-flash-exp" + }, + { + "title": "Gemini Experimental 1206", + "value": "gemini-exp-1206" + }, + { + "title": "Gemini 2.0 Flash Thinking Experimental", + "value": "gemini-2.0-flash-thinking-exp-1219" + }, + { + "title": "LearnLM 1.5 Pro Experimental", + "value": "learnlm-1.5-pro-experimental" } + ] + }, + { + "name": "prompt", + "title": "System Prompt", + "description": "The prompt to use for this command.", + "type": "textfield", + "required": false, + "default": "Translate the following text to {targetLanguage}. Try to keep all of the words from the given text and maintain the original meaning as closely as possible. ONLY return the translated text and nothing else." + }, + { + "name": "defaultTargetLanguage", + "title": "Default Target Language", + "description": "The default target language to use for this command.", + "type": "textfield", + "required": false, + "default": "en" } ] } @@ -484,6 +816,22 @@ { "title": "Gemini 1.5 Flash", "value": "gemini-1.5-flash-latest" + }, + { + "title": "Gemini 2.0 Flash Experimental", + "value": "gemini-2.0-flash-exp" + }, + { + "title": "Gemini Experimental 1206", + "value": "gemini-exp-1206" + }, + { + "title": "Gemini 2.0 Flash Thinking Experimental", + "value": "gemini-2.0-flash-thinking-exp-1219" + }, + { + "title": "LearnLM 1.5 Pro Experimental", + "value": "learnlm-1.5-pro-experimental" } ] } diff --git a/extensions/raycast-gemini/src/aiChat.jsx b/extensions/raycast-gemini/src/aiChat.jsx index 02806cade39..e6f42a20d85 100644 --- a/extensions/raycast-gemini/src/aiChat.jsx +++ b/extensions/raycast-gemini/src/aiChat.jsx @@ -86,6 +86,13 @@ export default function Chat({ launchContext }) {