File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11import '@ungap/with-resolvers' ;
22
33
4- // import { Mistral } from "@mistralai/mistralai";
54import { GoogleGenerativeAI } from "@google/generative-ai" ;
65import { type ExamDetail } from '@/interface' ;
76
@@ -101,7 +100,7 @@ function parseExamDetail(analysis: string): ExamDetail {
101100 }
102101}
103102
104- // Function to analyze images using Mistral AI
103+ // Function to analyze images using Gemini AI
105104async function analyzeImage ( dataUrl : string ) : Promise < AnalysisResult [ ] > {
106105 try {
107106 const apiKey = process . env . GEMINI_API_KEY ;
@@ -110,7 +109,7 @@ async function analyzeImage(dataUrl: string): Promise<AnalysisResult[]> {
110109 }
111110
112111 const genAI = new GoogleGenerativeAI ( apiKey ) ;
113- const model = genAI . getGenerativeModel ( { model : "gemini-1.5 -flash" } )
112+ const model = genAI . getGenerativeModel ( { model : "gemini-2.0 -flash" } )
114113 const results : AnalysisResult [ ] = [ ] ;
115114
116115 // const dataUrl = `data:image/png;base64,${imageBase64}`;
You can’t perform that action at this time.
0 commit comments