File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -191,28 +191,28 @@ static function () {
191191 if ( $ service ->get_service_slug () === 'openai ' ) {
192192 $ model = 'gpt-4o ' ;
193193 } else {
194- $ model = 'gemini-2.0-flash-exp ' ;
194+ $ model = 'gemini-2.0-flash ' ;
195195 }
196196
197197 $ candidates = $ service
198198 ->get_model (
199199 [
200200 'feature ' => 'text-generation ' ,
201201 'model ' => $ model ,
202- // 'tools' => $tools,
202+ 'tools ' => $ tools ,
203203 'capabilities ' => [
204204 AI_Capability::MULTIMODAL_INPUT ,
205205 AI_Capability::TEXT_GENERATION ,
206- // AI_Capability::FUNCTION_CALLING,
206+ AI_Capability::FUNCTION_CALLING ,
207207 ],
208- 'generationConfig ' => Text_Generation_Config::from_array (
209- array (
210- 'responseModalities ' => array (
211- 'Text ' ,
212- 'Image ' ,
213- ),
214- )
215- ),
208+ // 'generationConfig' => Text_Generation_Config::from_array(
209+ // array(
210+ // 'responseModalities' => array(
211+ // 'Text',
212+ // 'Image',
213+ // ),
214+ // )
215+ // ),
216216 ]
217217 )
218218 ->generate_text ( $ contents );
You can’t perform that action at this time.
0 commit comments