|
@@ -46,6 +46,9 @@ public class QwenOcrClient extends OcrApiClient {
|
|
|
content1.put("type", "image_url");
|
|
|
Map<String, String> urlBase64 = new HashMap<>();
|
|
|
String base64 = CodecUtils.toBase64(image);
|
|
|
+ if (imageType == null) {
|
|
|
+ imageType = ImageType.JPG;
|
|
|
+ }
|
|
|
urlBase64.put("url", imageType.getBase64Prefix() + base64);
|
|
|
content1.put("image_url", urlBase64);
|
|
|
content1.put("min_pixels", 3136);
|