aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDhravya <[email protected]>2024-03-31 22:52:32 -0700
committerDhravya <[email protected]>2024-03-31 22:52:32 -0700
commit2c870517b2a509f788016495ea6a0884d29a414b (patch)
treeada7257bd36f6443eb66d80e09e071bdd70da576
parentdelete pnpm-lock.yaml (diff)
downloadsupermemory-gemini-api.tar.xz
supermemory-gemini-api.zip
remove unnecessasry commentgemini-api
-rw-r--r--apps/cf-ai-backend/src/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/cf-ai-backend/src/index.ts b/apps/cf-ai-backend/src/index.ts
index 5f45eeb0..9b8eec8f 100644
--- a/apps/cf-ai-backend/src/index.ts
+++ b/apps/cf-ai-backend/src/index.ts
@@ -38,11 +38,11 @@ export default {
const store = new CloudflareVectorizeStore(embeddings, {
index: env.VECTORIZE_INDEX,
});
- // const ai = new Ai(env.AI)
const genAI = new GoogleGenerativeAI(env.GOOGLE_AI_API_KEY);
const model = genAI.getGenerativeModel({ model: "gemini-pro" });
+ // TODO: Add /chat endpoint to chat with the AI in a conversational manner
if (pathname === "/add" && request.method === "POST") {
const body = await request.json() as {