OthersideAI / self-operating-computer

A framework to enable multimodal models to operate a computer.
https://www.hyperwriteai.com/self-operating-computer
MIT License
8.58k stars 1.13k forks source link

Parsing error, I don't know if my Gemini-pro API credentials have problem #117

Open TheoneThefool opened 8 months ago

TheoneThefool commented 8 months ago
2

I'm a newbie, please help : ) and I‘m really interested in this project :D

Yash-1511 commented 8 months ago

Hi @TheoneThefool,

Could you please provide more details about the issue you're facing? It will help me understand whether it's a credential issue or a bug.

Thanks!

TheoneThefool commented 8 months ago

Hi @Yash-1511 , I don't know how to lookup for more details, that is all errors I can see in the git bash. Could you please show me how to check that ? Thank you for your help !

TheoneThefool commented 8 months ago

Hi @Yash-1511 . I seem to recall the credential error in the following step ↓

20240101113032 20240101113024

Thanks!

Yash-1511 commented 8 months ago

Hello @TheoneThefool ,

First please follow the link to create your Google API key for Gemini Pro Vision. The process is straightforward.

Once you have your API key, proceed by cloning the repository and following the installation instructions. Then, add your API key to the .env file.

To test if your API is functioning correctly, you can use the following sample request:

curl \
  -H 'Content-Type: application/json' \
  -d '{"contents":[{"parts":[{"text":"Write a story about a magic backpack"}]}]}' \
  -X POST https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=YOUR_API_KEY

Make sure to replace "YOUR_API_KEY" with the actual API key you obtained.

This process should help you get started with Gemini Pro Vision more effectively. If you have any questions or need further assistance, feel free to ask.

TheoneThefool commented 8 months ago

Thank you @Yash-1511 , My API can be invoked successfully, but my google-generativeai version is 0.3.2 and SOC requires 0.3.0 dose this matter? Screenshot (42)

michsiu commented 8 months ago

Same issue, and this link helps https://github.com/google/generative-ai-python/issues/117