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
2 changes: 1 addition & 1 deletion src/Console/Commands/RunAICommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class RunAICommand extends Command
{
protected $name = 'ai:run {task}';

protected function handle(): int
public function handle(): int
{
return $this->withTiming(function () {

Expand Down
6 changes: 3 additions & 3 deletions src/Console/Commands/TranslateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class TranslateCommand extends Command
{
protected $name = 'ai:translate {agent} {langFrom} {langTo} {model?}';

protected function handle(): int
public function handle(): int
{
return $this->withTiming(function () {

Expand All @@ -35,7 +35,7 @@ protected function handle(): int
break;
default:
throw new \Exception('Agent not found for translation, use "gemini", "openai" or "claude"');
};
};

//ask question
$apiKey = $this->secret('What is your api key?');
Expand All @@ -44,7 +44,7 @@ protected function handle(): int
->withKey($apiKey)
->model($model)
->translateLocalization($langFrom, $langTo);

$this->newLine();
$this->info(count($response) . ' files translated');
$this->newLine();
Expand Down