IDC
Build, push image, and notify Watchtower / build-image (push) Successful in 51s
Build, push image, and notify Watchtower / notify (push) Successful in 12s

This commit is contained in:
2026-08-23 18:30:00 +02:00
parent fe31ac978a
commit 68250e8069
+4 -3
View File
@@ -5,7 +5,7 @@ import shared.config as config
class DishSafetyResult(BaseModel):
visible_objects: list[str] = Field(
description="List EVERY distinct item visible in the frame (e.g., ['ceramic bowl', 'rice', 'metal spoon handle', 'stew'])."
description="List EVERY distinct item visible in the frame, one item per list element (e.g., ['ceramic bowl', 'rice', 'metal spoon handle', 'stew'])."
)
is_safe: bool = Field(
description="Is the microwave dish safe to microwave? True if safe, False if unsafe."
@@ -22,9 +22,9 @@ def check_dish_safety(image_path: str) -> dict:
"You are an expert microwave safety quality inspector analyzing a top-down camera frame.\n\n"
"INSPECTION STEPS:\n"
"Describe what you see in the image, identify any viewable hazards, and determine if the dish is safe to microwave.\n"
"Alert only if the cooking of the dish **will cause damage** to the microwave or the dish itself.\n"
"Alert only if the cooking of the dish **will cause damage** to the microwave or the dish itself, like metallic objects.\n\n"
"NOTES:\n"
"The camera focus is wrongly setup, so the image may be blurry. Please do not take the blurriness or lack of view into a hazardn"
"The camera focus is wrongly setup, so the image may be blurry. Please do not take the blurriness or lack of view into a hazard"
)
response_raw = generate(
@@ -33,6 +33,7 @@ def check_dish_safety(image_path: str) -> dict:
output_format=DishSafetyResult,
should_think=False,
)
if config.DEBUG_MESSAGES:
print(f"[Debug] Raw response from AI generator: {response_raw}")
if isinstance(response_raw, str):