HF RL Explorer

Make COBRApy compatible with pydantic version 2

Make COBRApy compatible with pydantic version 2: a task in life-science-SWE1.0 (Harbor dataset). Title: Make COBRApy compatible with pydantic version 2

The task

**Title:** Make COBRApy compatible with pydantic version 2

Part of scalingX/life-science-SWE1.0.