Skip to content

Commit

Permalink
force a tool type here
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Aug 13, 2024
1 parent a061a59 commit e95fde5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Modules/LlmDriver/app/BaseClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,12 +296,13 @@ public function remapFunctions(array $functions): array

/**
* @DEPRECATED
*
* This was before all the LLMs had tools
*
* @param MessageInDto[] $messages
*/
protected function insertFunctionsIntoMessageArray(array $messages): array
{
$functions = $this->getFunctions();
$functions = $this->setToolType(ToolTypes::Source)->getFunctions();

$functionsEncoded = collect($functions)->transform(
function ($item) {
Expand Down

0 comments on commit e95fde5

Please sign in to comment.