1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { handleMemoryApiRequest } from "https://esm.town/v/xkonti/gptMemoryManager";
const apiName = "Memory API";
const contactEmail = "some@email.com";
const lastPolicyUpdate = "2023-11-28";
const blobKeyPrefix = "gpt:memories:";
const apiKeyPrefix = "GPTMEMORYAPI_KEY_";
export const memoryApiExample = async (req: Request) => {
return await handleMemoryApiRequest(
req,
apiName,
contactEmail,
lastPolicyUpdate,
blobKeyPrefix,
apiKeyPrefix,
);
};