Trying to run the system_instruction example on this page and getting unexpected keyword argument error. New to Vertex AI , so not sure where to start.
https://github.com/googleapis/python-aiplatform/tree/main/vertexai/generative_models
Solved! Go to Solution.
Try to reinstall the sdk, run:
pip install --upgrade google-cloud-aiplatform
Try to reinstall the sdk, run:
pip install --upgrade google-cloud-aiplatform
Which version of the sdk has this argument? I did the pip install upgrade as you suggested and I'm still running into this error.
This fixed the issue for me.
i had already run the following command:
pip3.10 install --upgrade google.generativeai
Not sure if both are required
@wooly I figured it out, you have to upgrade the generative AI package, not the SDK. This worked for me:
pip3.10 install --upgrade google.generativeai
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |