[GH-ISSUE #39] Regarding Issue Using Gemini API #369

Closed
opened 2026-03-13 20:08:35 +03:00 by kerem · 11 comments
Owner

Originally created by @uniqueumesh on GitHub (Apr 17, 2024).
Original GitHub issue: https://github.com/AJaySi/ALwrity/issues/39

Originally assigned to: @AJaySi on GitHub.

Hi, I am getting the following error while using the Gemini LLM model API.

Thank you for your help.

Screenshot (25)

Originally created by @uniqueumesh on GitHub (Apr 17, 2024). Original GitHub issue: https://github.com/AJaySi/ALwrity/issues/39 Originally assigned to: @AJaySi on GitHub. Hi, I am getting the following error while using the Gemini LLM model API. Thank you for your help. ![Screenshot (25)](https://github.com/AJaySi/AI-Writer/assets/150319020/1bb8986a-308d-45ad-99dc-de765fb18e32)
kerem 2026-03-13 20:08:35 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@AJaySi commented on GitHub (Apr 18, 2024):

I had changed the retry logic, I will revert back to the original. This should be solved in next commit.

<!-- gh-comment-id:2062917379 --> @AJaySi commented on GitHub (Apr 18, 2024): I had changed the retry logic, I will revert back to the original. This should be solved in next commit.
Author
Owner

@pixelatumente commented on GitHub (Apr 18, 2024):

I had the same error with Gemini. I solved it with a VPN

<!-- gh-comment-id:2063493571 --> @pixelatumente commented on GitHub (Apr 18, 2024): I had the same error with Gemini. I solved it with a VPN
Author
Owner

@DikshaDisciplines commented on GitHub (Apr 18, 2024):

Hey @pixelatumente , could you share how did you use VPN as i am getting the similar error

<!-- gh-comment-id:2063636462 --> @DikshaDisciplines commented on GitHub (Apr 18, 2024): Hey @pixelatumente , could you share how did you use VPN as i am getting the similar error
Author
Owner

@pixelatumente commented on GitHub (Apr 18, 2024):

Hey @pixelatumente , could you share how did you use VPN as i am getting the similar error

Before launching the script in Visual Studio Code with Gemini I activate a VPN such as WindScribe (free). Gemini Pro does not work in Europe by regulation

<!-- gh-comment-id:2063666059 --> @pixelatumente commented on GitHub (Apr 18, 2024): > Hey @pixelatumente , could you share how did you use VPN as i am getting the similar error Before launching the script in Visual Studio Code with Gemini I activate a VPN such as WindScribe (free). Gemini Pro does not work in Europe by regulation
Author
Owner

@AJaySi commented on GitHub (Apr 19, 2024):

@umesh070 @pixelatumente @DikshaDisciplines

Checkout/clone the latest code. Above issue is fixed. It was to do with Gemini API model version.
gemini-pro works but latest models give error like gemini-1.5-pro

Please help confirm and close this issue. Thank you.

<!-- gh-comment-id:2065648897 --> @AJaySi commented on GitHub (Apr 19, 2024): @umesh070 @pixelatumente @DikshaDisciplines Checkout/clone the latest code. Above issue is fixed. It was to do with Gemini API model version. gemini-pro works but latest models give error like gemini-1.5-pro Please help confirm and close this issue. Thank you.
Author
Owner

@DikshaDisciplines commented on GitHub (Apr 21, 2024):

@AJaySi i did clone and test but i am facing the below error... i checked the api key is correct.
image

<!-- gh-comment-id:2067935934 --> @DikshaDisciplines commented on GitHub (Apr 21, 2024): @AJaySi i did clone and test but i am facing the below error... i checked the api key is correct. ![image](https://github.com/AJaySi/AI-Writer/assets/158307974/0a821933-d913-469c-9a60-6ef041c13a47)
Author
Owner

@AJaySi commented on GitHub (Apr 22, 2024):

@DikshaDisciplines
Please check your GEMINI keys. You have provided wrong keys, henece API_KEY_INVALID.

<!-- gh-comment-id:2068326674 --> @AJaySi commented on GitHub (Apr 22, 2024): @DikshaDisciplines Please check your GEMINI keys. You have provided wrong keys, henece API_KEY_INVALID.
Author
Owner

@AJaySi commented on GitHub (Apr 22, 2024):

@umesh070
If working, please close this issue. We will use tickets for different issues. Thanks.

<!-- gh-comment-id:2068327189 --> @AJaySi commented on GitHub (Apr 22, 2024): @umesh070 If working, please close this issue. We will use tickets for different issues. Thanks.
Author
Owner

@uniqueumesh commented on GitHub (Apr 22, 2024):

I'm still encountering the same error using the Gemini API and running smoothly with the OpenAI API.

Screenshot (78)

<!-- gh-comment-id:2068342694 --> @uniqueumesh commented on GitHub (Apr 22, 2024): I'm still encountering the same error using the Gemini API and running smoothly with the OpenAI API. ![Screenshot (78)](https://github.com/AJaySi/AI-Writer/assets/150319020/e9a4b166-caf0-48fa-a4e4-3b0d8e3b4aae)
Author
Owner

@AJaySi commented on GitHub (Apr 22, 2024):

Thanks @umesh070 .
I have updated the code, try below command in directory you cloned alwrity:
git pull

<!-- gh-comment-id:2068481282 --> @AJaySi commented on GitHub (Apr 22, 2024): Thanks @umesh070 . I have updated the code, try below command in directory you cloned alwrity: `git pull`
Author
Owner

@uniqueumesh commented on GitHub (Apr 22, 2024):

Gemini API is working smoothly now.
Thank you for the help @AJaySi

<!-- gh-comment-id:2068502657 --> @uniqueumesh commented on GitHub (Apr 22, 2024): Gemini API is working smoothly now. Thank you for the help @AJaySi
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ALwrity#369
No description provided.