forked from XiaoMo/ChatGPT-Next-Web
Change log
- config.ts - line 72: remove type confirmation of x as x always has type 'number' - line 135: remove the redundant local variable - chat.ts - delete the unused import
This commit is contained in:
parent
ad5093ce05
commit
1505372e20
@ -65,7 +65,7 @@ export const ALL_LANG_OPTIONS: Record<Lang, string> = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const LANG_KEY = "lang";
|
const LANG_KEY = "lang";
|
||||||
const DEFAULT_LANG = "cn";
|
const DEFAULT_LANG = "en";
|
||||||
|
|
||||||
const fallbackLang = en;
|
const fallbackLang = en;
|
||||||
const targetLang = ALL_LANGS[getLang()] as LocaleType;
|
const targetLang = ALL_LANGS[getLang()] as LocaleType;
|
||||||
|
@ -46,13 +46,13 @@ export const DEFAULT_CONFIG = {
|
|||||||
|
|
||||||
modelConfig: {
|
modelConfig: {
|
||||||
model: "gpt-3.5-turbo" as ModelType,
|
model: "gpt-3.5-turbo" as ModelType,
|
||||||
temperature: 0.6,
|
temperature: 0.5,
|
||||||
top_p: 1,
|
top_p: 1,
|
||||||
max_tokens: 2000,
|
max_tokens: 2000,
|
||||||
presence_penalty: 0,
|
presence_penalty: 0,
|
||||||
frequency_penalty: 0,
|
frequency_penalty: 0,
|
||||||
sendMemory: true,
|
sendMemory: true,
|
||||||
historyMessageCount: 1,
|
historyMessageCount: 4,
|
||||||
compressMessageLengthThreshold: 1000,
|
compressMessageLengthThreshold: 1000,
|
||||||
enableInjectSystemPrompts: true,
|
enableInjectSystemPrompts: true,
|
||||||
template: DEFAULT_INPUT_TEMPLATE,
|
template: DEFAULT_INPUT_TEMPLATE,
|
||||||
|
Loading…
Reference in New Issue
Block a user