Currently it causes an error if a parameter is specified both in the config file and the code.
It may be useful to just define a priority.
There are only few reasons why those parameters would get set in code:
- the code wants to make sure that a parameter is set specifically for the invocation
- the code sets a parameter that was e.g. chosen by a user during interaction
- the code knows the parameter has to be set in a specific context (e.g. temperature=1 if reasoning is used with Anthropic models)
So it is probably the better approach to give priority to parameter settings in the code!