Skip to content

Commit

Permalink
Adds an ability to set console app bin path
Browse files Browse the repository at this point in the history
  • Loading branch information
butschster committed Sep 1, 2024
1 parent bf81797 commit d86dc7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"require": {
"php": "^8.2",
"symfony/console": "^7.0",
"psr/event-dispatcher": "^1.0",
"ramsey/uuid": "^4.0",
"llm-agents/agents": "^1.0",
"llm-agents/openai-client": "^1.0",
Expand Down
4 changes: 2 additions & 2 deletions src/Console/ChatSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct(
$this->cursor = new Cursor($output);
}

public function run(UuidInterface $accountUuid): void
public function run(UuidInterface $accountUuid, string $binPath = 'app.php'): void
{
$agent = $this->selectAgent();

Expand All @@ -52,7 +52,7 @@ public function run(UuidInterface $accountUuid): void
];
}

$message = \sprintf('php app.php chat:session %s -v', $this->sessionUuid);
$message = \sprintf('php %s chat:session %s -v', $binPath, $this->sessionUuid);

$this->io->block(\array_merge($sessionInfo, [
'Run the following command to see the AI response',
Expand Down

0 comments on commit d86dc7e

Please sign in to comment.