Skip to content

Commit 641e321

Browse files
committed
Update Gemini reasoning effort options and selection logic
- gemini chatbot now uses Low/Medium/High reasoning efforts wit each model [Pasted text] ├── apps │ └── browser │ └── src │ └── content-scripts │ └── send-prompt-content-script │ └── chatbots │ ├── ai-studio.ts │ ├── arena.ts │ ├── chatgpt.ts │ ├── claude.ts │ ├── copilot.ts │ ├── deepseek.ts │ ├── doubao.ts │ ├── gemini.ts │ ├── github-copilot.ts │ ├── grok.ts │ ├── hugging-chat.ts │ ├── index.ts │ ├── kimi.ts │ ├── meta.ts │ ├── mistral.ts │ ├── open-webui.ts │ ├── openrouter.ts │ ├── qwen.ts │ ├── together.ts │ ├── yuanbao.ts │ └── z-ai.ts └── packages └── shared └── src └── constants └── chatbots.ts
1 parent 8442d70 commit 641e321

3 files changed

Lines changed: 8 additions & 9 deletions

File tree

‎apps/browser/src/content-scripts/send-prompt-content-script/chatbots/gemini.ts‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,24 +112,23 @@ export const gemini: Chatbot = {
112112
menu_content.querySelectorAll('gem-menu-item')
113113
)
114114

115-
const extended_thinking_item = all_menu_items.find(
115+
const target_item = all_menu_items.find(
116116
(item) =>
117117
item.querySelector('.label')?.textContent?.trim().toLowerCase() ==
118-
'extended thinking'
118+
reasoning_effort.toLowerCase()
119119
) as HTMLElement
120120

121-
if (!extended_thinking_item) {
121+
if (!target_item) {
122122
document.dispatchEvent(
123123
new KeyboardEvent('keydown', { key: 'Escape', bubbles: true })
124124
)
125125
return
126126
}
127127

128-
const is_extended = extended_thinking_item.classList.contains('selected')
129-
const target_is_extended = reasoning_effort.toLowerCase() == 'extended'
128+
const is_selected = target_item.classList.contains('selected')
130129

131-
if (is_extended !== target_is_extended) {
132-
extended_thinking_item.click()
130+
if (!is_selected) {
131+
target_item.click()
133132
} else {
134133
document.dispatchEvent(
135134
new KeyboardEvent('keydown', { key: 'Escape', bubbles: true })

‎apps/browser/src/manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"name": "Autofill for Code Web Chat",
55
"short_name": "CWC",
66
"description": "Got tired with copy and paste? Enable prompt autofill!",
7-
"version": "2026.922.12",
7+
"version": "2026.1010.13",
88
"homepage_url": "https://github.com/robertpiosik/CodeWebChat",
99
"icons": {
1010
"16": "icons/icon-16.png",

‎packages/shared/src/constants/chatbots.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export const CHATBOTS = {
8989
url_override_label: 'Gem URL',
9090
url_override_disabled_options: ['temporary-chat'],
9191
supports_reasoning_effort: true,
92-
supported_reasoning_efforts: ['Standard', 'Extended'],
92+
supported_reasoning_efforts: ['Low', 'Medium', 'High'],
9393
models: {
9494
'flash-lite': { label: 'Flash-Lite' },
9595
flash: { label: 'Flash' },

0 commit comments

Comments
 (0)