Since what version of DBT code was python_version available as a Python model config option

I need to set the python runtime version of my Python model to 3.11 as Snowflake now deprecates 3.8 and 3.8 seems still to be the default.
Can the python_version model config option be used to set the python version of a python model (i am getting conflicting info from LLMs) and can you tell me what version of dbt code this python_version config option has been available since? I am stuck with 1.5.1 for the moment

def model(dbt, session):
    dbt.config(
        materialized = "table",
        python_version="3.11"
    )