[Python] i got the error "google.api_core.exceptions.ResourceExhausted: 429 Resource has been...

Discussão em 'Python' iniciado por Stack, Maio 21, 2025.

  1. Stack

    Stack Membro Participativo

    I have checked my quota limits on GCP but it did't exceed

    below is a code

    sample_file = genai.upload_file(path=image_path,display_name=image_path)

    print(f"Uploaded file '{sample_file.display_name}' as: {sample_file.uri}")
    model = genai.GenerativeModel(model_name="models/gemini-1.5-pro-latest")

    response = model.generate_content(["Generate the tags for the given image. Provide all the information in JSON format.", sample_file])


    I tried to check the GCP

    Continue reading...

Compartilhe esta Página