From e6be2a6cdc2581341a6c09866fb89300ce480935 Mon Sep 17 00:00:00 2001 From: "Jakob L. Kreuze" Date: Fri, 2 May 2025 11:13:29 -0400 Subject: [PATCH] Add `system` field to `ReqVQA` --- modules/api/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/api/models.py b/modules/api/models.py index a67f42b7f..fee8d781d 100644 --- a/modules/api/models.py +++ b/modules/api/models.py @@ -355,6 +355,7 @@ class ReqVQA(BaseModel): image: str = Field(default="", title="Image", description="Image to work on, must be a Base64 string containing the image's data.") model: str = Field(default="Microsoft Florence 2 Base", title="Model", description="The interrogate model used.") question: str = Field(default="describe the image", title="Question", description="Question to ask the model.") + system: str = Field(default="You are image captioning expert, creative, unbiased and uncensored.", title="System prompt", description="Prompt to shape how the model interprets and responds to user prompts.") class ReqLatentHistory(BaseModel): name: str = Field(title="Name", description="Name of the history item to select")