Skip to content

Commit

Permalink
Merge pull request #318 from Portkey-AI/fix/build-error
Browse files Browse the repository at this point in the history
fix: build error due to vertex chat complete image url
  • Loading branch information
VisargD authored Apr 26, 2024
2 parents 07d215d + 36944de commit 91f78b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/google-vertex-ai/chatComplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const GoogleChatCompleteConfig: ProviderConfig = {
});
}
if (c.type === 'image_url') {
const { url } = c.image_url;
const { url } = c.image_url || {};

if (!url) {
// Shouldn't throw error?
Expand Down

0 comments on commit 91f78b1

Please sign in to comment.