nuhmanpk / VisionScriptBot

A telegram bot that uses Google's Gemini Pro Vision API to convert image to text
MIT License
19 stars 7 forks source link

Error #1

Closed Ashrafmdmatin41 closed 1 month ago

Ashrafmdmatin41 commented 1 month ago

File "/app/.heroku/python/lib/python3.12/site-packages/google/api_core/timeout.py", line 120, in func_with_timeout 2024-07-22T12:22:47.121446+00:00 app[worker.1]: return func(*args, **kwargs) 2024-07-22T12:22:47.121446+00:00 app[worker.1]: ^^^^^^^^^^^^^^^^^^^^^ 2024-07-22T12:22:47.121446+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.12/site-packages/google/api_core/grpc_helpers.py", line 81, in error_remapped_callable 2024-07-22T12:22:47.121446+00:00 app[worker.1]: raise exceptions.from_grpc_error(exc) from exc 2024-07-22T12:22:47.121447+00:00 app[worker.1]: google.api_core.exceptions.NotFound: 404 Gemini 1.0 Pro Vision has been deprecated on July 12, 2024. Consider switching to different model, for example gemini-1.5-flash.

nuhmanpk commented 1 month ago

@Ashrafmdmatin41 , 'gemini-vision-pro' seems to be working for me, did you used any other model ?

Ashrafmdmatin41 commented 1 month ago

@Ashrafmdmatin41 , 'gemini-vision-pro' seems to be working for me, did you used any other model ?

Yes now i get the solution