mirror of
https://github.com/langgenius/dify.git
synced 2026-11-11 22:02:23 +08:00
Co-authored-by: zxhlyh <jasonapring2015@outlook.com> Co-authored-by: JzoNg <jzongcode@gmail.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
8 lines
255 B
Python
8 lines
255 B
Python
from pydantic import BaseModel, ConfigDict
|
|
|
|
|
|
class StrictModel(BaseModel):
|
|
"""Base request model that forbids unknown fields while accepting JSON-native values."""
|
|
|
|
model_config = ConfigDict(extra="forbid", strict=True, hide_input_in_errors=True)
|