Assigning value to time dependent symbolic function inside a function

If the input is always a constant, you can encode it as a parameter using @parameters and then change the value by providing a new value in the parameter map when creating the ODEProblem.