Skip to content

Commit 5caad3f

Browse files
committed
Update selector attributes from type=number to inputmode=decimal for temperature and top-p input fields
1 parent 6c3f57e commit 5caad3f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export const ai_studio: Chatbot = {
185185
const temperature = chat.temperature
186186
if (temperature === undefined) return
187187
const temperature_element = document.querySelector(
188-
'ms-prompt-run-settings div[data-test-id="temperatureSliderContainer"] input[type=number]'
188+
'ms-prompt-run-settings div[data-test-id="temperatureSliderContainer"] input[inputmode="decimal"]'
189189
) as HTMLInputElement
190190
if (!temperature_element) {
191191
report_initialization_error({
@@ -333,7 +333,7 @@ export const ai_studio: Chatbot = {
333333
await new Promise((r) => requestAnimationFrame(r))
334334
}
335335
const top_p_element = document.querySelector(
336-
'ms-prompt-run-settings div[mattooltip="Probability threshold for top-p sampling"] input[type=number]'
336+
'ms-prompt-run-settings div[mattooltip="Probability threshold for top-p sampling"] input[inputmode="decimal"]'
337337
) as HTMLInputElement
338338
if (!top_p_element) {
339339
report_initialization_error({

0 commit comments

Comments
 (0)