ENCOA-255 gpt was grouping parts by sections and the reading passages were not updated with text.content instead of the old context field
This commit is contained in:
@@ -47,10 +47,13 @@ class FillBlanksExercise(BaseModel):
|
||||
|
||||
Exercise = Union[MultipleChoiceExercise, FillBlanksExercise]
|
||||
|
||||
class Text(BaseModel):
|
||||
content: str
|
||||
title: str
|
||||
|
||||
class Part(BaseModel):
|
||||
exercises: List[Exercise]
|
||||
context: Optional[str] = Field(default=None)
|
||||
text: Optional[Text] = Field(default=None)
|
||||
|
||||
|
||||
class Exam(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user