raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.28k stars 2.98k forks source link

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

Closed Bradleeey closed 2 weeks ago

Bradleeey commented 4 months ago

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

raycastbot commented 4 months ago

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.
triggerfx commented 4 months ago

Same issue...

cfh01 commented 4 months ago

I have the same issue...

dominikbulaj commented 3 months ago

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

confiq commented 2 months ago

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

nickwild-999 commented 2 months ago

Same for me

Bradleeey commented 2 months ago

Anyone going to fix this?

XInTheDark commented 2 months ago

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.

dominikbulaj commented 2 months ago

In my case it happens in all Gemini commands.

XInTheDark commented 2 months ago

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 commented 2 months ago

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

dominikbulaj commented 2 months ago

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:)

nickwild-999 commented 2 months ago

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

olinftw commented 2 months ago

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

raycastbot commented 4 weeks ago

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 commented 2 weeks ago

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.