Skip to content

https image url for Google providers #1337

@ianbbqzy

Description

@ianbbqzy

What Happened?

Currently, if we pass an image url to Google like you do to OpenAI. Google would reject if it's an https URL

I see that the code just propagates it to upstream https://github.com/inworld-ai/portkey-ai-gateway/blob/main/src/providers/google/chatComplete.ts#L233

But I'm wondering if the gateway should first retrieve the image and format it as a data url?

What Should Have Happened?

No response

Relevant Code Snippet

No response

Your Twitter/LinkedIn

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions