v1.5: Add login module and GPT selection feature

This commit is contained in:
2023-07-12 18:04:12 +08:00
parent 329b9c7c95
commit 49fffe8cbe
17 changed files with 375 additions and 31 deletions
+34 -1
View File
@@ -1,6 +1,39 @@
import { BuiltinMask } from "./typing";
export const CN_MASKS: BuiltinMask[] = [];
export const CN_MASKS: BuiltinMask[] = [
{
avatar: "/avatar/chatgpt.png",
name: "gpt3.5",
context: [],
modelConfig: {
model: "gpt-3.5-turbo",
temperature: 0.5,
max_tokens: 2000,
presence_penalty: 0,
sendMemory: true,
historyMessageCount: 64,
compressMessageLengthThreshold: 2000,
},
lang: "cn",
builtin: true,
},
{
avatar: "/avatar/chatgpt4.png",
name: "gpt4",
context: [],
modelConfig: {
model: "gpt-4",
temperature: 0.5,
max_tokens: 2000,
presence_penalty: 0,
sendMemory: true,
historyMessageCount: 32,
compressMessageLengthThreshold: 500,
},
lang: "cn",
builtin: true,
},
]
// export const CN_MASKS: BuiltinMask[] = [
// {