diff options
| -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 { |