small fixes
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user