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

Function get_model_config

src/openai/_compat.py:110–113  ·  view source on GitHub ↗
(model: type[pydantic.BaseModel])

Source from the content-addressed store, hash-verified

108
109
110def get_model_config(model: type[pydantic.BaseModel]) -> Any:
111 if PYDANTIC_V1:
112 return model.__config__ # type: ignore
113 return model.model_config
114
115
116def get_model_fields(model: type[pydantic.BaseModel]) -> dict[str, FieldInfo]:

Callers 1

constructMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected