Start here
The safe first move
Move supported Config values into model_config and rename the keys that have a direct Pydantic v2 equivalent.
Stop before automation when: Removed config keys. Config logic that depends on project-specific behavior.
Target shape
model_config = ConfigDict(
from_attributes=True,
populate_by_name=True,
)