Problem with headers

Description

Hi everyone!

I am building a multimodal embedding based on the following documentation:

In this page, it is mentioned that the new headers should be the followings:

additional_headers = {
"X-Google-Vertex-Api-Key": "YOUR-VERTEX-API-KEY", # Replace with your API key
"X-Google-Studio-Api-Key": "YOUR-AI-STUDIO-API-KEY", # Replace with your API key
}

but when I use these keys in the header I get an error regarding not including “X-PALM-Api-Key” and could you please tell em where I can find these headers in Google world?

Server Setup Information

  • Weaviate Server Version: 1.24.14
  • Deployment Method:
  • Multi Node? 1:
  • Client Language and Version:

Any additional Information

Hi @Milad_Rezaeighale,
I believe that is a bug, I experienced the same issue.

Temporary workaround

For now, the workaround is to use "X-Google-Api-Key" in place of the "X-Google-Vertex-Api-Key"

additional_headers = {
  "X-Google-Api-Key": "YOUR-VERTEX-API-KEY", # Replace with your API key
  "X-Google-Studio-Api-Key": "YOUR-AI-STUDIO-API-KEY", # Replace with your API key
}