Quantcast
Channel: Weaviate Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 3588

Google automatic token generation

$
0
0

I’m pretty sure I have set up the necessary steps on the server side and have the credentials json file set up. I assumed that I no longer need to pass the headers when connecting to the weaviate cloud since the json file should set it up for me which is why my new code is:

client = weaviate.connect_to_weaviate_cloud(
    cluster_url=weaviate_url,                       # `weaviate_url`: your Weaviate URL
    auth_credentials=Auth.api_key(weaviate_key),      # `weaviate_key`: your Weaviate API key
    # headers=headers
)

However, the error I get seems to indicate that I still need to either pass in the header or add an extra environment variable:

no api key found neither in request header: X-Palm-Api-Key or X-Google-Api-Key or X-Google-Vertex-Api-Key or X-Google-Studio-Api-Key nor in environment variable under PALM_APIKEY or GOOGLE_APIKEY'

My question is basically do I need to set the api key in the request header or in PALM_APIKEY or GOOGLE_APIKEY if I followed the steps in the documentation and already set USE_GOOGLE_AUTH to ‘true’ and have the json file?


Viewing all articles
Browse latest Browse all 3588

Trending Articles