Abandoning sqlite cache

This commit is contained in:
Rafi
2023-02-13 14:29:01 +08:00
parent 65629ca5a6
commit 1ee3469978
5 changed files with 400 additions and 113 deletions

View File

@@ -69,7 +69,6 @@ export default defineEventHandler(async (event) => {
// This is used for storing conversations, and supports additional drivers (conversations are stored in memory by default)
// For example, to use a JSON file (`npm i keyv-file`) as a database:
// store: new KeyvFile({ filename: 'cache.json' }),
uri: 'sqlite://database.sqlite'
};
const chatGptClient = new ChatGPTClient(body.openaiApiKey, clientOptions, cacheOptions);