Skip to content

Commit 34d6eab

Browse files
committed
fix: Update report request model
1 parent 79eda8e commit 34d6eab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

asknews_sdk/dto/alert.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class Triggers(RootModel):
7575

7676

7777
class ReportRequest(BaseModel):
78-
prompt: List[List[str]] | None = Field(
78+
prompt: Optional[List[List[str]]] = Field(
7979
None,
8080
description=(
8181
"The optional prompt to use for report generation. The prompt should be a list of "
@@ -93,7 +93,7 @@ class ReportRequest(BaseModel):
9393
["human", "{summaries}"],
9494
],
9595
)
96-
model: ReportModel | None = Field(
96+
model: Optional[ReportModel] = Field(
9797
None, description="The model to use for the report", example="gpt-4o"
9898
)
9999

0 commit comments

Comments
 (0)