autogen
autogen copied to clipboard
Parse and correctly set Gemini safety settings
Why are these changes needed?
The provided example at the top of this file did not work correctly. Safety settings need to be parsed into Vertex AI objects and cannot just be a dictionary of simple objects.
Checks
- [ X ] I've included any doc changes needed for https://microsoft.github.io/autogen/. See https://microsoft.github.io/autogen/docs/Contribute#documentation to build and test documentation locally.
- [ X ] I've added tests (if relevant) corresponding to the changes introduced in this PR.
- [ X ] I've made sure all auto checks have passed.