@@ -73,6 +73,7 @@ import {
7373 Iflytek ,
7474 SAAS_CHAT_URL ,
7575 ChatGLM ,
76+ DeepSeek ,
7677} from "../constant" ;
7778import { Prompt , SearchService , usePromptStore } from "../store/prompt" ;
7879import { ErrorBoundary } from "./error" ;
@@ -1197,6 +1198,47 @@ export function Settings() {
11971198 </ >
11981199 ) ;
11991200
1201+ const deepseekConfigComponent = accessStore . provider ===
1202+ ServiceProvider . DeepSeek && (
1203+ < >
1204+ < ListItem
1205+ title = { Locale . Settings . Access . DeepSeek . Endpoint . Title }
1206+ subTitle = {
1207+ Locale . Settings . Access . DeepSeek . Endpoint . SubTitle +
1208+ DeepSeek . ExampleEndpoint
1209+ }
1210+ >
1211+ < input
1212+ aria-label = { Locale . Settings . Access . DeepSeek . Endpoint . Title }
1213+ type = "text"
1214+ value = { accessStore . deepseekUrl }
1215+ placeholder = { DeepSeek . ExampleEndpoint }
1216+ onChange = { ( e ) =>
1217+ accessStore . update (
1218+ ( access ) => ( access . deepseekUrl = e . currentTarget . value ) ,
1219+ )
1220+ }
1221+ > </ input >
1222+ </ ListItem >
1223+ < ListItem
1224+ title = { Locale . Settings . Access . DeepSeek . ApiKey . Title }
1225+ subTitle = { Locale . Settings . Access . DeepSeek . ApiKey . SubTitle }
1226+ >
1227+ < PasswordInput
1228+ aria-label = { Locale . Settings . Access . DeepSeek . ApiKey . Title }
1229+ value = { accessStore . deepseekApiKey }
1230+ type = "text"
1231+ placeholder = { Locale . Settings . Access . DeepSeek . ApiKey . Placeholder }
1232+ onChange = { ( e ) => {
1233+ accessStore . update (
1234+ ( access ) => ( access . deepseekApiKey = e . currentTarget . value ) ,
1235+ ) ;
1236+ } }
1237+ />
1238+ </ ListItem >
1239+ </ >
1240+ ) ;
1241+
12001242 const XAIConfigComponent = accessStore . provider === ServiceProvider . XAI && (
12011243 < >
12021244 < ListItem
@@ -1733,6 +1775,7 @@ export function Settings() {
17331775 { alibabaConfigComponent }
17341776 { tencentConfigComponent }
17351777 { moonshotConfigComponent }
1778+ { deepseekConfigComponent }
17361779 { stabilityConfigComponent }
17371780 { lflytekConfigComponent }
17381781 { XAIConfigComponent }
0 commit comments