AI-Scientist icon indicating copy to clipboard operation
AI-Scientist copied to clipboard

How to setup the api

Open kanboura opened this issue 1 year ago • 7 comments

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"

kanboura avatar Aug 17 '24 23:08 kanboura

Have you set the anthropic API key?

conglu1997 avatar Aug 18 '24 00:08 conglu1997

yes

kanboura avatar Aug 18 '24 00:08 kanboura

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

kanboura avatar Aug 18 '24 00:08 kanboura

You should set the env variable ANTHROPIC_API_KEY

conglu1997 avatar Aug 18 '24 07:08 conglu1997

How I use Google Gemini API instead?

curiosityz avatar Aug 19 '24 00:08 curiosityz

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

hTp34r avatar Aug 19 '24 03:08 hTp34r

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

curiosityz avatar Sep 09 '24 02:09 curiosityz

gemini supported now!

conglu1997 avatar Apr 13 '25 11:04 conglu1997

gemini supported now!

Sweet!!

curiosityz avatar May 02 '25 03:05 curiosityz