SakanaAI / AI-Scientist

The AI Scientist: Towards Fully Automated Open-Ended Scientific Discovery 🧑‍🔬
Apache License 2.0
7.33k stars 977 forks source link

How to setup the api #41

Open kanboura opened 3 weeks ago

kanboura commented 3 weeks ago

How to setup the api : Using GPUs: [] Using Anthropic API with model claude-3-5-sonnet-20240620.

Generating idea 1/50 Iteration 1/3 Failed to generate idea: "Could not resolve authentication method. Expected either api_key or auth_token to be set. Or for one of the X-Api-Key or Authorization headers to be explicitly omitted"

conglu1997 commented 3 weeks ago

Have you set the anthropic API key?

kanboura commented 3 weeks ago

yes

kanboura commented 3 weeks ago

I have the API key, but where should I add it?

conglu1997 commented 3 weeks ago

You should set the env variable ANTHROPIC_API_KEY

curiosityz commented 3 weeks ago

How I use Google Gemini API instead?

hTp34r commented 3 weeks ago

If I use OpenAI API key with an OpenAI Base Url, how should I set it up? Do I need to change .py files?

curiosityz commented 2 days ago

Still never was able to use it, would like to run using Google Gemini API as it's free (not sure why everyone goes for OpenAI first when they cost money.)