From 775774fbcee532a5fce44f4c556cc58c95719fb6 Mon Sep 17 00:00:00 2001 From: Arif Hoque Date: Thu, 5 Mar 2026 12:19:13 +0600 Subject: [PATCH] Fix: textInput never used for gemini issues: : --- src/AgentFactory/Agent/Gemini.php | 4 ++-- src/Vector/Vector.php | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/AgentFactory/Agent/Gemini.php b/src/AgentFactory/Agent/Gemini.php index 7c7f0e0..349bb26 100644 --- a/src/AgentFactory/Agent/Gemini.php +++ b/src/AgentFactory/Agent/Gemini.php @@ -75,7 +75,7 @@ public function setMessage(array $messages): mixed */ public function execute(array $params, bool $complete = false, ?string $textInput = null): mixed { - $result = $this->platform->invoke($this->model, $this->messages, $params); + $result = $this->platform->invoke($this->model, $textInput ?? $this->messages, $params); return $complete ? $result : $result->asText(); } @@ -98,7 +98,7 @@ public function stream(array $params, ?string $textInput = null): \Generator try { $result = $this->platform->invoke( $this->model, - $this->messages, + $textInput ?? $this->messages, $params ); diff --git a/src/Vector/Vector.php b/src/Vector/Vector.php index 02c9bdb..300fed0 100644 --- a/src/Vector/Vector.php +++ b/src/Vector/Vector.php @@ -5,9 +5,6 @@ use Doppar\AI\Agent; use Doppar\AI\AgentFactory\Agent\OpenAI; -/** - * Helper class providing vector utilities for RAG (Retrieval Augmented Generation). - */ class Vector { /**