diff options
| author | Dhravya <[email protected]> | 2024-03-31 22:52:32 -0700 |
|---|---|---|
| committer | Dhravya <[email protected]> | 2024-03-31 22:52:32 -0700 |
| commit | 2c870517b2a509f788016495ea6a0884d29a414b (patch) | |
| tree | ada7257bd36f6443eb66d80e09e071bdd70da576 /apps/cf-ai-backend/src/index.ts | |
| parent | delete pnpm-lock.yaml (diff) | |
| download | supermemory-gemini-api.tar.xz supermemory-gemini-api.zip | |
remove unnecessasry commentgemini-api
Diffstat (limited to 'apps/cf-ai-backend/src/index.ts')
| -rw-r--r-- | apps/cf-ai-backend/src/index.ts | 2 |
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 { |