Skip to content

Commit bf8a747

Browse files
committed
Remove model configuration and selection logic for DeepSeek
- remove model selection on deepseek
1 parent 168de43 commit bf8a747

2 files changed

Lines changed: 1 addition & 37 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/deepseek.ts‎

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,6 @@ import {
77
import { report_initialization_error } from '../utils/report-initialization-error'
88

99
export const deepseek: Chatbot = {
10-
set_model: async (chat) => {
11-
const model = chat.model
12-
if (!model) return
13-
14-
let target_type = ''
15-
if (model == 'expert') {
16-
target_type = 'expert'
17-
} else if (model == 'instant') {
18-
target_type = 'default'
19-
} else if (model == 'vision') {
20-
target_type = 'vision'
21-
}
22-
23-
if (target_type) {
24-
const model_radio = document.querySelector(
25-
`div[data-model-type="${target_type}"]`
26-
) as HTMLElement
27-
if (model_radio) {
28-
const is_checked = model_radio.getAttribute('aria-checked') == 'true'
29-
if (!is_checked) {
30-
model_radio.click()
31-
await new Promise((r) => requestAnimationFrame(r))
32-
}
33-
} else {
34-
report_initialization_error({
35-
function_name: 'set_model',
36-
log_message: `Model radio button for "${model}" not found`
37-
})
38-
}
39-
}
40-
},
4110
set_options: async (chat) => {
4211
const deep_think_button = Array.from(
4312
document.querySelectorAll('div.ds-toggle-button')

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,7 @@ export const CHATBOTS = {
7676
} as Chatbot,
7777
DeepSeek: {
7878
url: 'https://chat.deepseek.com/',
79-
supported_options: { 'deep-think': 'DeepThink', search: 'Search' },
80-
models: {
81-
instant: { label: 'Instant' },
82-
expert: { label: 'Expert', disabled_options: ['search'] },
83-
vision: { label: 'Vision', disabled_options: ['search'] }
84-
}
79+
supported_options: { 'deep-think': 'DeepThink', search: 'Search' }
8580
} as Chatbot,
8681
Doubao: {
8782
url: 'https://www.doubao.com/chat/',

0 commit comments

Comments
 (0)