Skip to content

Commit

Permalink
Restore extra=forbid for Template, refs #169
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Aug 20, 2023
1 parent 5bf0f41 commit adb900b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions llm/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ class Template(BaseModel):
model: Optional[str] = None
defaults: Optional[Dict[str, Any]] = None

class Config:
extra = "forbid"

class MissingVariables(Exception):
pass

Expand Down

0 comments on commit adb900b

Please sign in to comment.