salomonsky commited on
Commit
d2b2083
·
verified ·
1 Parent(s): 961aa73

Delete scripts/gemini.js

Browse files
Files changed (1) hide show
  1. scripts/gemini.js +0 -11
scripts/gemini.js DELETED
@@ -1,11 +0,0 @@
1
- export async function askGemini(prompt) {
2
- const GEMINI_API_KEY = import.meta.env.GEMINI_API_KEY;
3
- const response = await fetch(`https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=${GEMINI_API_KEY}`, {
4
- method: "POST",
5
- headers: { "Content-Type": "application/json" },
6
- body: JSON.stringify({
7
- contents: [{ role: "user", parts: [{ text: prompt }] }]
8
- })
9
- });
10
- return await response.json();
11
- }