API config

#1
by neuronaut - opened

I just recieved a new Google Studio API token, Using https://generativelanguage.googleapis.com base URL, model: gemini-2.5-flash
Can't get the space working, every time i get 'gradio.exceptions.Error: 'Failed to generate blog draft: Error: API client configuration failed.' after parsing a PDF.
What am I doing wrong?

and with Open AI i get

Traceback (most recent call last):
File "/home/user/app/app.py", line 305, in process_pdf
raise gr.Error("Failed to format post for display.")
gradio.exceptions.Error: 'Failed to format post for display.'

I just recieved a new Google Studio API token, Using https://generativelanguage.googleapis.com base URL, model: gemini-2.5-flash
Can't get the space working, every time i get 'gradio.exceptions.Error: 'Failed to generate blog draft: Error: API client configuration failed.' after parsing a PDF.
What am I doing wrong?

Thanks for using the PRAgent demo.
The previous version had a key validation that only accepted strings beginning with 'sk-'. Since keys from Google AI Studio don't seem to follow this format, we've removed that check. Please feel free to try again.

and with Open AI i get

Traceback (most recent call last):
File "/home/user/app/app.py", line 305, in process_pdf
raise gr.Error("Failed to format post for display.")
gradio.exceptions.Error: 'Failed to format post for display.'

Network fluctuations or insufficient model capabilities could both trigger this error (I lean more towards the former). Perhaps you could try again.

Thanks for the modification. Unfortunately, now with Google API i am still getting the
Traceback (most recent call last):
File "/home/user/app/app.py", line 305, in process_pdf
raise gr.Error("Failed to format post for display.")
gradio.exceptions.Error: 'Failed to format post for display.'

Using free Google account, i believe must provide sufficient tokens amount

Sign up or log in to comment