Skip to content

Commit acf6065

Browse files
Update useAI.ts
change CallGemini
1 parent 5d927b2 commit acf6065

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hooks/useAI.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const useAI = () => {
6262
};
6363

6464
const callGemini = async (prompt: string, apiKey: string): Promise<string> => {
65-
const response = await fetch(`https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=${apiKey}`, {
65+
const response = await fetch(`https://generativelanguage.googleapis.com/v1/models/gemini-pro:generateContent?key=${apiKey}`, {
6666
method: 'POST',
6767
headers: { 'Content-Type': 'application/json' },
6868
body: JSON.stringify({

0 commit comments

Comments
 (0)