Skip to content

Commit 52513de

Browse files
committed
Revert breaking change from PR#12
1 parent ec5ad91 commit 52513de

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/MCP/Client.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff 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 );

0 commit comments

Comments
 (0)