mirror of
https://github.com/coaidev/coai.git
synced 2025-06-06 22:00:25 +09:00
chore: Define sending defaults based on different device types (#204)
This commit is contained in:
parent
0ddd2d2a89
commit
2024302316
@ -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"];
|
||||
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
|
||||
max_tokens: 2000,
|
||||
temperature: 0.6,
|
||||
top_p: 1,
|
||||
|
Loading…
Reference in New Issue
Block a user