You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constbase64Pattern=/^[A-Za-z0-9+/]+={1,2}$/// detect by checking for equals signs at the end
This isn't a valid test of base64 data, though. If the content has a multiple of 3 bytes, there won't be any trailing '='. This will cause the library to try to open a file with the filename of the base64 string in these cases.
The text was updated successfully, but these errors were encountered:
The processing of input images in base64 format assumes that base64 strings will always end with '=' or '==':
ollama-js/src/index.ts
Line 90 in 0cd1bdd
This isn't a valid test of base64 data, though. If the content has a multiple of 3 bytes, there won't be any trailing '='. This will cause the library to try to open a file with the filename of the base64 string in these cases.
The text was updated successfully, but these errors were encountered: