MCPcopy
hub / github.com/openai/openai-python / Model

Class Model

tests/test_models.py:162–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160
161def test_strict_validation_unknown_fields() -> None:
162 class Model(BaseModel):
163 foo: str
164
165 model = parse_obj(Model, dict(foo="hello!", user="Robert"))
166 assert model.foo == "hello!"

Calls

no outgoing calls