Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image Upload Doesn't Work #2598

Open
Screenmax1234 opened this issue Jan 24, 2025 · 7 comments
Open

Image Upload Doesn't Work #2598

Screenmax1234 opened this issue Jan 24, 2025 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@Screenmax1234
Copy link

It doesn't matter what model you use image upload or not all of them say that they cannot view the image presented

@Screenmax1234 Screenmax1234 added the bug Something isn't working label Jan 24, 2025
@hlohaus
Copy link
Collaborator

hlohaus commented Jan 24, 2025

Please choose a specific provider and a corresponding vision model.

Some providers offer only one vision model, while others may have none or multiple options available.

You can find detailed documentation on how to select a provider here:
How to Select a Provider

@Screenmax1234

@Screenmax1234
Copy link
Author

@hlohaus It didn't work I will update to the latest version and test it again.

@Screenmax1234
Copy link
Author

Still didn't work

@hlohaus
Copy link
Collaborator

hlohaus commented Jan 25, 2025

@Screenmax1234 Please provide more background information.

  • Where do you want to upload images? In the Web UI or in the Client?
  • Which providers and models have you tested?

Today, we added a special default_vision model. This model supports a long list of providers for uploading images.

Here’s an example of how to use it:

import g4f.models

body = {
    "model": g4f.models.default_vision,
    "messages": [{"role": "user", "content": "Can you see the image?"}],
    "images": [[open("image.jpg", "rb"), "image.jpg"]]
}

@Screenmax1234
Copy link
Author

@Screenmax1234 Please provide more background information.

  • Where do you want to upload images? In the Web UI or in the Client?
  • Which providers and models have you tested?

Today, we added a special default_vision model. This model supports a long list of providers for uploading images.

Here’s an example of how to use it:

import g4f.models

body = {
    "model": g4f.models.default_vision,
    "messages": [{"role": "user", "content": "Can you see the image?"}],
    "images": [[open("image.jpg", "rb"), "image.jpg"]]
}

In the webui

@hlohaus
Copy link
Collaborator

hlohaus commented Jan 26, 2025

Check out the demo:
https://huggingface.co/spaces/roxky/g4f-demo

You can choose from four image upload models, three of which are fully functional.

@Screenmax1234

@Screenmax1234
Copy link
Author

Check out the demo:
https://huggingface.co/spaces/roxky/g4f-demo

You can choose from four image upload models, three of which are fully functional.

@Screenmax1234

That is solved for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants