Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix vertex ai multimodal embedding translation #9471

Merged
merged 10 commits into from
Mar 25, 2025
Original file line number Diff line number Diff line change
@@ -226,7 +226,7 @@ def _process_input_element(self, input_element: str) -> Instance:
else:
return Instance(image=InstanceImage(gcsUri=input_element))
elif is_base64_encoded(s=input_element):
return Instance(image=InstanceImage(bytesBase64Encoded=input_element))
return Instance(image=InstanceImage(bytesBase64Encoded=input_element.split(",")[1] if "," in input_element else input_element))
else:
return Instance(text=input_element)