extensions icon indicating copy to clipboard operation
extensions copied to clipboard

I have added the api key but none [Google Gemini] ...

Open Bradleeey opened this issue 1 year ago • 5 comments

Extension

https://www.raycast.com/EvanZhouDev/raycast-gemini

Raycast Version

1.75.1

macOS Version

12.4.1

Description

Description

I have tried everything and followed the steps to set up the API key, and all I get when I try any command is the following...

Could not access Gemini. This may be because Gemini has decided that your prompt did not comply with its regulations. Please try another prompt, and if it still does not work, create an issue on GitHub.

this issue is for any prompt I try in any app.

Steps To Reproduce

  1. get api key
  2. paste api key into raycast gemini app
  3. select text on figma
  4. choose a command from raycast
  5. get error modal

Current Behaviour

Nothing happens

Expected Behaviour

results

Bradleeey avatar May 23 '24 12:05 Bradleeey

Thank you for opening this issue!

🔔 @EvanZhouDev you might want to have a look.

💡 Author and Contributors commands

The author and contributors of EvanZhouDev/raycast-gemini can trigger bot actions by commenting:

  • @raycastbot close this issue Closes the issue.
  • @raycastbot rename this issue to "Awesome new title" Renames the issue.
  • @raycastbot reopen this issue Reopens the issue.
  • @raycastbot assign me Assigns yourself to the issue.
  • @raycastbot good first issue Adds the "Good first issue" label to the issue.

raycastbot avatar May 23 '24 12:05 raycastbot

Same issue...

triggerfx avatar Jun 02 '24 07:06 triggerfx

I have the same issue...

christian-frands-hansen avatar Jun 03 '24 10:06 christian-frands-hansen

Also the same issue on my end. Any possibility @EvanZhouDev you can check it, please?

dominikbulaj avatar Jun 20 '24 09:06 dominikbulaj

It works for me, but a more descriptive error would be great!

confiq avatar Jul 08 '24 15:07 confiq

Same for me

nickwild-999 avatar Jul 12 '24 07:07 nickwild-999

Anyone going to fix this?

Bradleeey avatar Jul 12 '24 07:07 Bradleeey

Does this issue occur in other commands as well? does AI Chat or Ask AI work properly? If the issue is identified I can help to fix this.

XInTheDark avatar Jul 13 '24 07:07 XInTheDark

In my case it happens in all Gemini commands.

dominikbulaj avatar Jul 13 '24 07:07 dominikbulaj

In my case it happens in all Gemini commands.

Thanks for the prompt reply! Just got a fresh install of the extension, and it works for me.

Could you check if your Gemini API key is valid, by running the following in terminal

curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent?key=GEMINI_API_KEY" \
    -H 'Content-Type: application/json' \
    -X POST \
    -d '{
      "contents": [{
        "parts":[{
          "text": "Hello? Who are you?"}]}]}'

(replacing GEMINI_API_KEY with your API Key)?

XInTheDark avatar Jul 13 '24 07:07 XInTheDark

Also please check if Gemini is available in your region by opening the Web UI https://gemini.google.com/.

XInTheDark avatar Jul 13 '24 07:07 XInTheDark

Thanks! @XInTheDark that helped! It turned out Free Tier is not available in my country/location. I just had to set billing. It works now:)

dominikbulaj avatar Jul 13 '24 20:07 dominikbulaj

Thanks! @XInTheDark that helped! It turned out Free Tier is not available in my country/location. I just had to set billing. It works now:)

This also fixed it for me many thanks @XInTheDark

nickwild-999 avatar Jul 13 '24 21:07 nickwild-999

I have the free tier available but I get this error all the time

olinftw avatar Jul 18 '24 13:07 olinftw

This issue has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 10 days to keep our backlog clean 😊

raycastbot avatar Sep 06 '24 14:09 raycastbot

This issue has been automatically closed due to inactivity.

Feel free to comment in the thread when you're ready to continue working on it 🙂

You can also catch us in Slack if you want to discuss this.

raycastbot avatar Sep 16 '24 14:09 raycastbot

same issue!

noogler-eng avatar Aug 07 '25 05:08 noogler-eng