File tree Expand file tree Collapse file tree
apps/browser/src/content-scripts/send-prompt-content-script/chatbots
packages/shared/src/constants Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,37 +7,6 @@ import {
77import { report_initialization_error } from '../utils/report-initialization-error'
88
99export 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' )
Original file line number Diff line number Diff 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/' ,
You can’t perform that action at this time.
0 commit comments