更改默认 system message

This commit is contained in:
2023-03-26 18:36:51 +08:00
parent a4b762586c
commit 241a93b151

View File

@@ -20,7 +20,7 @@ export interface ChatStore {
const _defaultAPIEndpoint = "https://api.openai.com/v1/chat/completions"; const _defaultAPIEndpoint = "https://api.openai.com/v1/chat/completions";
const newChatStore = ( const newChatStore = (
apiKey = "", apiKey = "",
systemMessageContent = "你是一个有用的人工智能助理", systemMessageContent = "你是一个有用的人工智能助理,根据我的提问和要求回答我的问题",
apiEndpoint = _defaultAPIEndpoint, apiEndpoint = _defaultAPIEndpoint,
streamMode = true streamMode = true
): ChatStore => { ): ChatStore => {