downgraded laravel
This commit is contained in:
@@ -12,9 +12,9 @@ use Illuminate\Support\Facades\Http;
|
||||
#[Description('Command description')]
|
||||
class GenerateJobSummaryCommand extends Command
|
||||
{
|
||||
/**
|
||||
* Execute the console command.
|
||||
*/
|
||||
protected $signature = 'jobs:summary {--batch=50}';
|
||||
protected $description = 'Generate AI summaries for jobs';
|
||||
|
||||
public function handle()
|
||||
{
|
||||
$batchSize = (int) $this->option('batch');
|
||||
@@ -39,7 +39,8 @@ class GenerateJobSummaryCommand extends Command
|
||||
$summary = $this->generateSummary($job);
|
||||
|
||||
if ($summary) {
|
||||
$job->summary = $summary;
|
||||
$summary = str_replace('Summary:', "", $summary);
|
||||
$job->summary = trim($summary);
|
||||
$job->save();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user