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

API KEY #2

Open
XT-404 opened this issue Jan 15, 2025 · 20 comments
Open

API KEY #2

XT-404 opened this issue Jan 15, 2025 · 20 comments

Comments

@XT-404
Copy link

XT-404 commented Jan 15, 2025

Good morning @sdbds

I would like to report an anomaly in the code, I can integrate the API key: https://aistudio.google.com/apikey
deleted it, reinstall it as many times as I want in the code, this one is not taken into consideration by the program.

I tried everything, nothing worked:

image

However, I integrate the key in the API_Handler.py file which is found in module in this section of line of code:
if (
mime.startswith("video")
or mime.startswith("audio")
or args.pixtral_api_key == "AIzaSyB6DPD0Hsgd-y3t2rSbOm-4GlJQNpPKv8k"
):

thank you for your feedback

Additional information, whether Via Mistral or AI Studio it is exactly the same problem, the API key is not taken into consideration by the code.

@sdbds
Copy link
Owner

sdbds commented Jan 15, 2025

Thank you for your use and feedback!
In this project, the API KEY is set and entered using the PS1 script.
You need to open and edit run.ps1 with any text editor and enter your APIKEY in the relevant apikey parameter, otherwise the relevant API will not be detected.
image

I pass the apikey parameter using args.
image

Why use ps1 instead of toml?
Because the script for this project is multi-threaded, if you have data for multiple API KEYs and multiple directories, you can copy run.ps1 separately for multiple processing.

@XT-404
Copy link
Author

XT-404 commented Jan 15, 2025

@sdbds

so to tell you I even installed the keys in all the folders or figured out the term Key API and I always had the same problem over and over again

can you please make an animated gif to show with exatitude or the installed which frankly I don't understand, no matter how much I do, undo, redo it never works

@XT-404
Copy link
Author

XT-404 commented Jan 15, 2025

image
image

@sdbds
Copy link
Owner

sdbds commented Jan 16, 2025

image image

image image

Please reset the code to its original state.

After checking, you modified the apikey variable in the script, which cannot be transmitted.

here is your
image

here is should be
image

@XT-404
Copy link
Author

XT-404 commented Jan 16, 2025

@sdbds : ok I will reinstall all the code tomorrow and I will keep you informed, many thanks for your analysis and feedback

with all my respect

@sdbds
Copy link
Owner

sdbds commented Jan 16, 2025

I have updated the video demonstration, and I think the entire process is very simple, only two steps...

@XT-404
Copy link
Author

XT-404 commented Jan 16, 2025

new problem :/

image

@sdbds
Copy link
Owner

sdbds commented Jan 16, 2025

new problem :/

image

check your video format and audio format if block reasons is others.

gemini just support some common format.

429 means your api key over rate limit

@XT-404
Copy link
Author

XT-404 commented Jan 16, 2025

@sdbds : Format Video : MP4, 24FPS, 480x320

image

@XT-404
Copy link
Author

XT-404 commented Jan 16, 2025

@sdbds : Is there a maximum duration? 4 seconds? 3 seconds? 5?

@sdbds
Copy link
Owner

sdbds commented Jan 16, 2025

@sdbds : Format Video : MP4, 24FPS, 480x320

image

Pay attention to the audio format of the video, as Gemini will use the audio from the video.

Image

Common formats are mp3, pcm(wav), and aac.

@sdbds
Copy link
Owner

sdbds commented Jan 16, 2025

@sdbds : Is there a maximum duration? 4 seconds? 3 seconds? 5?

There is no limit, as tested, Gemini supports up to 6 minutes, and this project has automatic segmentation; if the video exceeds 5 minutes, it will automatically be split into multiple 5-minute short videos

By the way, it supports using 1080P video.

However, since your APIKEY shows 429, you may need to wait for a while before trying again

@sdbds
Copy link
Owner

sdbds commented Jan 16, 2025

I guess your video source might be some older media? I had a similar issue with the audio source when I tested Tom and Jerry before. It is encapsulated using the MP2 container, which causes Gemini to fail to recognize it.

Other review reasons may also exist, but generally, block:other is due to incorrect formatting

@XT-404
Copy link
Author

XT-404 commented Jan 16, 2025

@sdbds : It's still quite weird because the video is not supposed to have sound or music, it's a generated video

@XT-404
Copy link
Author

XT-404 commented Jan 16, 2025

@sdbds : it's weird, I converted the videos and passed the audio even if there is no audio in MP3 format, I still have the same problem, same in mov or avi format.

@sdbds
Copy link
Owner

sdbds commented Jan 16, 2025

@sdbds : It's still quite weird because the video is not supposed to have sound or music, it's a generated video

Perhaps it's a review issue, if convenient, you can upload your media via a link for me to test

@XT-404
Copy link
Author

XT-404 commented Jan 16, 2025

@sdbds : With pleasure I provide you with a link

@XT-404
Copy link
Author

XT-404 commented Jan 16, 2025

@sdbds
Copy link
Owner

sdbds commented Jan 16, 2025

@sdbds : https://www.swisstransfer.com/d/4f4b77c0-79a0-4ff4-9bd5-91284b9a6987

Image

After my test, there is no problem, maybe your Google Gemini hasn't added a payment method and is restricted?

@XT-404
Copy link
Author

XT-404 commented Jan 16, 2025

@sdbds : I'm going to go look at this because it's really strange.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants