Start here
The safe first move
Import BaseSettings from pydantic_settings and update supported Config keys when the settings class stays inside the safe subset.
Stop before automation when: Removed config keys. Indirect imports and wrappers.
Target shape
from pydantic_settings import BaseSettings
class Settings(BaseSettings):
api_url: str