Skip to content

Commit 4fbca7d

Browse files
committed
Remove temporary chat support and outdated models from AI Studio integration
1 parent 5c8f6ea commit 4fbca7d

2 files changed

Lines changed: 6 additions & 38 deletions

File tree

  • apps/browser/src/content-scripts/send-prompt-content-script/chatbots
  • packages/shared/src/constants

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

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const ai_studio: Chatbot = {
1111
wait_until_ready: async () => {
1212
await new Promise((resolve) => {
1313
const check_for_element = () => {
14-
if (!document.querySelector('ms-incognito-mode-toggle > button')) {
14+
if (!document.querySelector('ms-zero-state')) {
1515
setTimeout(check_for_element, 100)
1616
return
1717
}
@@ -130,25 +130,6 @@ export const ai_studio: Chatbot = {
130130
sessionStorage.setItem('should-hide-panel', 'true')
131131
}
132132

133-
if (
134-
options.includes('temporary-chat') &&
135-
supported_options?.['temporary-chat']
136-
) {
137-
const temp_toggle = document.querySelector(
138-
'ms-incognito-mode-toggle > button'
139-
) as HTMLElement
140-
if (!temp_toggle) {
141-
report_initialization_error({
142-
function_name: 'set_options',
143-
log_message: 'Temporary chat toggle not found'
144-
})
145-
return
146-
}
147-
if (!temp_toggle.classList.contains('ms-button-active')) {
148-
temp_toggle.click()
149-
}
150-
}
151-
152133
if (supported_options?.['grounding-with-google-search']) {
153134
const grounding_button = document.querySelector(
154135
'div[data-test-id="searchAsAToolTooltip"] button'

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

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,39 +33,26 @@ export const CHATBOTS = {
3333
supports_thinking_budget: true,
3434
default_system_instructions: "You're a helpful coding assistant.",
3535
supported_options: {
36-
'temporary-chat': 'Temporary chat',
3736
'hide-panel': 'Hide panel',
3837
'disable-thinking': 'Disable thinking',
3938
'grounding-with-google-search': 'Grounding with Google Search',
4039
'url-context': 'URL context'
4140
},
4241
models: {
43-
'gemini-3.1-pro-preview': {
44-
label: 'Gemini 3.1 Pro Preview',
45-
disabled_options: ['disable-thinking'],
46-
supported_reasoning_efforts: ['Low', 'Medium', 'High']
47-
},
48-
'gemini-3-pro-preview': {
49-
label: 'Gemini 3 Pro Preview',
50-
disabled_options: ['disable-thinking'],
51-
supported_reasoning_efforts: ['Low', 'High']
52-
},
5342
'gemini-3-flash-preview': {
5443
label: 'Gemini 3 Flash Preview',
5544
disabled_options: ['disable-thinking'],
5645
supported_reasoning_efforts: ['Minimal', 'Low', 'Medium', 'High']
5746
},
47+
'gemini-3.1-pro-preview': {
48+
label: 'Gemini 3.1 Pro Preview',
49+
disabled_options: ['disable-thinking'],
50+
supported_reasoning_efforts: ['Low', 'Medium', 'High']
51+
},
5852
'gemini-3.1-flash-lite-preview': {
5953
label: 'Gemini 3.1 Flash Lite Preview',
6054
disabled_options: ['disable-thinking'],
6155
supported_reasoning_efforts: ['Minimal', 'Low', 'Medium', 'High']
62-
},
63-
'gemini-2.5-pro': {
64-
label: 'Gemini 2.5 Pro',
65-
disabled_options: ['disable-thinking']
66-
},
67-
'gemini-2.5-flash': {
68-
label: 'Gemini 2.5 Flash'
6956
}
7057
}
7158
} as Chatbot,

0 commit comments

Comments
 (0)