Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/AgentFactory/Agent/Gemini.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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
);

Expand Down
3 changes: 0 additions & 3 deletions src/Vector/Vector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
/**
Expand Down