Skip to content

Commit

Permalink
fix(settings.ts): correct default sender behavior for mobile and PC
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaomaiTX committed Jul 18, 2024
1 parent f9f3228 commit b78e8fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/store/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const initialSettings = {
context: true,
align: false,
history: 8,
sender: isMobile(), // Defaults to true (Enter) in the case of mobile and false (Ctrl + Enter) on PCs
sender: !isMobile(), // default [mobile: Ctrl + Enter, pc: Enter]
max_tokens: 2000,
temperature: 0.6,
top_p: 1,
Expand All @@ -32,7 +32,7 @@ export const settingsSlice = createSlice({
context: getBooleanMemory("context", true), // keep context
align: getBooleanMemory("align", false), // chat textarea align center
history: getNumberMemory("history_context", 8), // max history context length
sender: getBooleanMemory("sender", false), // sender (false: Ctrl + Enter, true: Enter)
sender: getBooleanMemory("sender", !isMobile()), // sender (false: Ctrl + Enter, true: Enter)
max_tokens: getNumberMemory("max_tokens", 2000), // max tokens
temperature: getNumberMemory("temperature", 0.6), // temperature
top_p: getNumberMemory("top_p", 1), // top_p
Expand Down

0 comments on commit b78e8fe

Please sign in to comment.