dvc890 commited on
Commit
41ae5ab
·
verified ·
1 Parent(s): 72f836d

Update ai-routes.js

Browse files
Files changed (1) hide show
  1. ai-routes.js +1 -1
ai-routes.js CHANGED
@@ -113,7 +113,7 @@ function convertGeminiToDoubaoInput(baseParams) {
113
  contentParts.push({ type: textType, text: p.text });
114
  }
115
  else if (p.inlineData && p.inlineData.mimeType.startsWith('image/')) {
116
- contentParts.push({ type: 'input_image', image_url: { url: `data:${p.inlineData.mimeType};base64,${p.inlineData.data}` } });
117
  }
118
  });
119
  }
 
113
  contentParts.push({ type: textType, text: p.text });
114
  }
115
  else if (p.inlineData && p.inlineData.mimeType.startsWith('image/')) {
116
+ contentParts.push({ type: 'input_image', image_url: `data:${p.inlineData.mimeType};base64,${p.inlineData.data}` });
117
  }
118
  });
119
  }