[fix] supamemory uses default openai key

This commit is contained in:
kwaroran
2023-05-19 21:04:55 +09:00
parent c4de57556e
commit 49f280ef3f

View File

@@ -103,7 +103,7 @@ export async function supaMemory(chats:OpenAIChat[],currentTokens:number,maxCont
const da = await fetch("https://api.openai.com/v1/completions",{
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer " + db.openAIKey
"Authorization": "Bearer " + db.supaMemoryKey
},
method: "POST",
body: JSON.stringify({