Skip to content

Commit ea6d0c2

Browse files
committed
Update DeepSeek chatbot integration to match revised button text and ensure proper initialization
1 parent 587c491 commit ea6d0c2

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

packages/browser/src/content-scripts/send-prompt-content-script/chatbots/deepseek.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export const deepseek: Chatbot = {
2525
}
2626
check_for_element()
2727
})
28+
await new Promise((resolve) => setTimeout(resolve, 500))
2829
},
2930
set_options: async (options?: string[]) => {
3031
if (!options) return
@@ -33,11 +34,9 @@ export const deepseek: Chatbot = {
3334
document.querySelectorAll('div[role="button"]')
3435
).find(
3536
(button) =>
36-
button.textContent == 'DeepThink (R1)' ||
37-
button.textContent == '深度思考 (R1)'
37+
button.textContent == 'DeepThink' || button.textContent == '深度思考'
3838
) as HTMLElement
3939
const deep_think_button_style = window.getComputedStyle(deep_think_button)
40-
console.log(deep_think_button_style.getPropertyValue('--ds-button-color'))
4140
if (
4241
deep_think_button_style.getPropertyValue('--ds-button-color') !=
4342
'transparent' &&
@@ -71,8 +70,8 @@ export const deepseek: Chatbot = {
7170
document.querySelectorAll('div[role="button"]')
7271
).find(
7372
(button) =>
74-
button.textContent == 'DeepThink (R1)' ||
75-
button.textContent == '深度思考 (R1)'
73+
button.textContent == 'DeepThink' ||
74+
button.textContent == '深度思考'
7675
) as HTMLElement
7776
const button_style = window.getComputedStyle(deep_think_button)
7877
if (

packages/browser/src/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"name": "Code Web Chat Connector",
55
"short_name": "CWC",
66
"description": "Initialize 15+ free chatbots with your code and instructions. Parse websites into markdown to include in context.",
7-
"version": "1.27.0",
7+
"version": "1.28.0",
88
"homepage_url": "https://github.com/robertpiosik/CodeWebChat",
99
"icons": {
1010
"16": "icons/icon-16.png",

0 commit comments

Comments
 (0)