@@ -73,6 +73,7 @@ import {
73
73
Iflytek ,
74
74
SAAS_CHAT_URL ,
75
75
ChatGLM ,
76
+ DeepSeek ,
76
77
} from "../constant" ;
77
78
import { Prompt , SearchService , usePromptStore } from "../store/prompt" ;
78
79
import { ErrorBoundary } from "./error" ;
@@ -1197,6 +1198,47 @@ export function Settings() {
1197
1198
</ >
1198
1199
) ;
1199
1200
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
+
1200
1242
const XAIConfigComponent = accessStore . provider === ServiceProvider . XAI && (
1201
1243
< >
1202
1244
< ListItem
@@ -1733,6 +1775,7 @@ export function Settings() {
1733
1775
{ alibabaConfigComponent }
1734
1776
{ tencentConfigComponent }
1735
1777
{ moonshotConfigComponent }
1778
+ { deepseekConfigComponent }
1736
1779
{ stabilityConfigComponent }
1737
1780
{ lflytekConfigComponent }
1738
1781
{ XAIConfigComponent }
0 commit comments