File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 * @module lib/services/gemini-infographics
1313 */
1414
15- import { GoogleGenAI } from "@google/genai" ;
15+ import { GoogleGenAI , ThinkingLevel } from "@google/genai" ;
1616import { getConfigValue } from "@/lib/config" ;
1717
1818// ---------------------------------------------------------------------------
@@ -110,10 +110,19 @@ async function generateWithGeminiContent(
110110 model,
111111 contents : prompt ,
112112 config : {
113- responseModalities : [ 'IMAGE' ] ,
113+ responseModalities : [ 'IMAGE' , 'TEXT' ] ,
114+ thinkingConfig : {
115+ thinkingLevel : ThinkingLevel . MINIMAL ,
116+ } ,
114117 imageConfig : {
115118 aspectRatio : aspectRatio as '1:1' | '3:4' | '4:3' | '9:16' | '16:9' ,
119+ imageSize : '1K' ,
116120 } ,
121+ tools : [
122+ {
123+ googleSearch : { } ,
124+ } ,
125+ ] ,
117126 } ,
118127 } ) ;
119128
You can’t perform that action at this time.
0 commit comments