Skip to content

Commit

Permalink
typo: "mine" -> "mime"
Browse files Browse the repository at this point in the history
  • Loading branch information
maksimf authored Nov 27, 2024
1 parent 983acd2 commit c7e4170
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 c7e4170

Please sign in to comment.