AJaySi / AI-Writer

Alwrity - AI contextual Content generation Suite. Prevents AI hallucinations, Web Researched factual, SEO optimized content. Get blog Images. Create your AI-Powered Content Agents team. Create content with RAG, Local documents, web urls. Open Source AI writer.
https://alwrity.com
108 stars 37 forks source link

Regarding Issue Using Gemini API #39

Closed umesh070 closed 2 months ago

umesh070 commented 2 months ago

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

Thank you for your help.

Screenshot (25)

AJaySi commented 2 months ago

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

pixelatumente commented 2 months ago

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

DikshaDisciplines commented 2 months ago

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

pixelatumente commented 2 months ago

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

AJaySi commented 2 months ago

@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.

DikshaDisciplines commented 2 months ago

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

AJaySi commented 2 months ago

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

AJaySi commented 2 months ago

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

umesh070 commented 2 months ago

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

Screenshot (78)

AJaySi commented 2 months ago

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

umesh070 commented 2 months ago

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