fix: set logprobs to default false

This commit is contained in:
2024-03-16 18:31:27 +08:00
parent a76cf224f6
commit b20de667a4

View File

@@ -87,7 +87,7 @@ export const newChatStore = (
image_gen_api = "https://api.openai.com/v1/images/generations", image_gen_api = "https://api.openai.com/v1/images/generations",
image_gen_key = "", image_gen_key = "",
json_mode = false, json_mode = false,
logprobs = true logprobs = false
): ChatStore => { ): ChatStore => {
return { return {
chatgpt_api_web_version: CHATGPT_API_WEB_VERSION, chatgpt_api_web_version: CHATGPT_API_WEB_VERSION,
@@ -290,7 +290,7 @@ export function App() {
chatStore.image_gen_api, chatStore.image_gen_api,
chatStore.image_gen_key, chatStore.image_gen_key,
chatStore.json_mode, chatStore.json_mode,
chatStore.logprobs false // logprobs default to false
) )
); );
setSelectedChatIndex(newKey as number); setSelectedChatIndex(newKey as number);