Skip to content

Commit f7d83ee

Browse files
author
lrhh123
committed
fix: 修复字符串为空的 BUG
1 parent f89be8e commit f7d83ee

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/renderer/pages/Settings/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ const SettingsPage = () => {
5252
await updateConfig({
5353
extract_phone: customerServiceSettings.extractPhone,
5454
extract_product: customerServiceSettings.extractProduct,
55-
save_path: customerServiceSettings.folderPath,
55+
save_path: customerServiceSettings.folderPath.trim(),
5656
reply_speed: customerServiceSettings.replySpeed,
57-
default_reply: customerServiceSettings.defaultReply,
57+
default_reply: customerServiceSettings.defaultReply.trim(),
5858
context_count: customerServiceSettings.contextCount,
5959
wait_humans_time: customerServiceSettings.manualInterventionInterval,
60-
gpt_base_url: gptSettings.gptAddress,
61-
gpt_key: gptSettings.apiKey,
62-
gpt_model: gptSettings.model,
60+
gpt_base_url: gptSettings.gptAddress.trim(),
61+
gpt_key: gptSettings.apiKey.trim(),
62+
gpt_model: gptSettings.model.trim(),
6363
gpt_temperature: gptSettings.temperature,
6464
gpt_top_p: gptSettings.topP,
6565
stream: gptSettings.stream,

0 commit comments

Comments
 (0)