small fixes

This commit is contained in:
Doar Mihai
2026-05-02 02:49:38 +03:00
parent 462eb2fc61
commit 41b756a858
3 changed files with 17 additions and 6 deletions
+7 -5
View File
@@ -71,13 +71,11 @@ class CurateJobs extends Command
'CF-Access-Client-Secret' => 'adeeed2f75236053953cc9dd898c7756bab5e00f7d0901bf7d488b6db8aba336',
])
->post($apiUrl, [
'model' => 'mixtral',
'model' => 'granite4.1:3b',
'stream' => false,
'prompt' => $body,
]);
var_dump($response->json());
if ($response->successful()) {
$responseArray = $response->json();
@@ -89,11 +87,15 @@ class CurateJobs extends Command
continue;
}
$tags = array_flip($tags);
//$tags = array_flip($tags);
if (is_array($tags) && !empty($tags)) {
$tagIds = [];
if (isset($tags['tags'])) {
$tags = $tags['tags'];
}
foreach ($tags as $tagName) {
// Find or create tag
$tag = Tag::firstOrCreate(
@@ -121,7 +123,7 @@ class CurateJobs extends Command
}
} catch (\Exception $e) {
$failedCount++;
$log->error("Error curating job #{$job->id}: {$e->getMessage()}");
$log->error("Error curating job #{$job->id}: {$e->getMessage()} {$e->getTraceAsString()}");
}
$progressBar->advance();