Skip to content

Commit

Permalink
chore: Define sending defaults based on different device types (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh1n3zZ committed Jun 21, 2024
1 parent 0ddd2d2 commit 2024302
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/src/store/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ import {
setNumberMemory,
} from "@/utils/memory.ts";
import { RootState } from "@/store/index.ts";
import { isMobile } from "@/utils/device";

export const sendKeys = ["Ctrl + Enter", "Enter"];
export const sendKeys = isMobile() ? ["Ctrl + Enter", "Enter"] : ["Enter", "Ctrl + Enter"];

This comment has been minimized.

Copy link
@zmh-program

zmh-program Jul 4, 2024

Member

revert

export const initialSettings = {
context: true,
align: false,
history: 8,
sender: false,
sender: isMobile(), // Defaults to true (Enter) in the case of mobile and false (Ctrl + Enter) on PCs

This comment has been minimized.

Copy link
@zmh-program

zmh-program Jul 4, 2024

Member

!isMobile()

max_tokens: 2000,
temperature: 0.6,
top_p: 1,
Expand Down

0 comments on commit 2024302

Please sign in to comment.