Skip to content

Commit 899ee48

Browse files
committed
23rd commit
1 parent 7571b80 commit 899ee48

File tree

3 files changed

+25
-19
lines changed

3 files changed

+25
-19
lines changed

package-lock.json

Lines changed: 23 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/games/Hangman.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const Hangman: React.FC = () => {
7979
const prompt = `Provide a short, one-sentence clue for the word "${word}" for a game of hangman. Do not use the word "${word}" in your clue.`;
8080

8181
try {
82-
const model = genAI.getGenerativeModel({ model: "gemini-1.5-flash" });
82+
const model = genAI.getGenerativeModel({ model: "gemini-2.5-flash" });
8383
const result = await model.generateContent(prompt);
8484
const response = await result.response;
8585
const hintText = response.text();

src/components/games/WordScramble.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const WordScramble: React.FC = () => {
6969
const prompt = `Provide a short, one-sentence clue for the word "${originalWord}" for a word scramble game. Do not use the word "${originalWord}" in your clue.`;
7070

7171
try {
72-
const model = genAI.getGenerativeModel({ model: "gemini-1.5-flash" });
72+
const model = genAI.getGenerativeModel({ model: "gemini-2.5-flash" });
7373
const result = await model.generateContent(prompt);
7474
const response = await result.response;
7575
const hintText = response.text();

0 commit comments

Comments
 (0)