Public
Script
Readme

When use, just

import { flash } from "https://esm.town/v/kora/gemini"
1
2
3
4
5
6
7
8
9
import { GoogleGenerativeAI } from "https://esm.run/@google/generative-ai";
const genAI = new GoogleGenerativeAI(Deno.env.get("GEMINI_API_KEY"));
export const flash = genAI.getGenerativeModel({ model: "gemini-1.5-flash" });
// const prompt = "สวัสดีจ้า";
// const result = await model.generateContent(prompt);
// console.log(result.response.text());
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
July 31, 2024