autogen
autogen copied to clipboard
FIX: `MultiModalMessage` in gemini with openai sdk error occured
Why are these changes needed?
Multimodal message fill context with other routine. However current _set_empty_to_whitespace is fill with context.
So, error occured.
And, I checked multimodal_user_transformer_funcs and I found it, in this routine, context must not be empty.
Now remove the _set_empty_to_whitespace when multimodal message,
Related issue number
#6439
Checks
- [ ] I've included any doc changes needed for https://microsoft.github.io/autogen/. See https://github.com/microsoft/autogen/blob/main/CONTRIBUTING.md 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.