Shorter AI answer
This commit is contained in:
@@ -6,7 +6,7 @@ from APIs.aichat import generate
|
|||||||
# 1. Define the output schema as a Pydantic model
|
# 1. Define the output schema as a Pydantic model
|
||||||
class DishSafetyResult(BaseModel):
|
class DishSafetyResult(BaseModel):
|
||||||
is_safe: bool = Field(
|
is_safe: bool = Field(
|
||||||
description="True if no microwave hazards (metal, foil, sealed packaging, ...) are present."
|
description="True if no microwave hazards presents."
|
||||||
)
|
)
|
||||||
warning_message: str = Field(
|
warning_message: str = Field(
|
||||||
description="Short explanation of any hazard found (no more than one sentence), or an empty string if safe."
|
description="Short explanation of any hazard found (no more than one sentence), or an empty string if safe."
|
||||||
|
|||||||
Reference in New Issue
Block a user