Skip to content

Commit

Permalink
fix(google-common): "mine" -> "mime" (langchain-ai#7281)
Browse files Browse the repository at this point in the history
Co-authored-by: Jacob Lee <jacoblee93@gmail.com>
  • Loading branch information
2 people authored and syntaxsec committed Dec 13, 2024
1 parent 531e8e0 commit a59a8f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/langchain-google-common/src/utils/gemini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,10 @@ export function getGeminiAPI(config?: GeminiAPIConfig): GoogleAIAPI {
throw new Error("Missing Image URL");
}

const mineTypeAndData = extractMimeType(url);
if (mineTypeAndData) {
const mimeTypeAndData = extractMimeType(url);
if (mimeTypeAndData) {
return {
inlineData: mineTypeAndData,
inlineData: mimeTypeAndData,
};
} else {
// FIXME - need some way to get mime type
Expand Down

0 comments on commit a59a8f7

Please sign in to comment.