fix: block pipeline at needs_review when no model detected
Without a model name/number specs research is pointless. Stays at needs_review so the user can enter the model manually, then re-run. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
4d223c37c1
commit
fc628df42b
1 changed files with 2 additions and 6 deletions
|
|
@ -43,12 +43,8 @@ final class PhotoUploadHandler
|
|||
]);
|
||||
$this->jobRepository->save($job);
|
||||
|
||||
$hasAnyInfo = '' !== $result['manufacturer']
|
||||
|| '' !== $result['modelName']
|
||||
|| '' !== $result['modelNumber'];
|
||||
|
||||
if (!$hasAnyInfo) {
|
||||
$job->markNeedsReview('OllamaVisionAgent: nothing readable on nameplate');
|
||||
if ('' === $result['modelName'] && '' === $result['modelNumber']) {
|
||||
$job->markNeedsReview('OllamaVisionAgent: no model detected — add model name/number manually and re-run');
|
||||
$this->jobRepository->save($job);
|
||||
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue