When initializing a class such as VertexAI, the process completes "smoothly" even when incorrect keyword arguments are provided. For example, I encountered the following issue:
The code executes without any warnings, despite the fact that safety_setting is incorrect and should be written as safety_settings. This can be problematic, as it may lead to unexpected model behavior, which is difficult to diagnose.
I am raising this issue with VertexAI, but I am unsure if the same behavior occurs with other classes as well. If you agree with this problematic behavior, and you believe that it needs to be changed, I can open a PR with fixing this issue.
Yes, raising a warning never hurts. Please, feel free to send the PR.
The problem is, that we can never be sure 100% whether this kwargs is meant for ChatVertexAI / VertexAI or not.
When initializing a class such as
VertexAI
, the process completes "smoothly" even when incorrect keyword arguments are provided. For example, I encountered the following issue:The code executes without any warnings, despite the fact that
safety_setting
is incorrect and should be written assafety_settings
. This can be problematic, as it may lead to unexpected model behavior, which is difficult to diagnose.I am raising this issue with VertexAI, but I am unsure if the same behavior occurs with other classes as well. If you agree with this problematic behavior, and you believe that it needs to be changed, I can open a PR with fixing this issue.