opened 07:11AM - 28 May 24 UTC
closed 04:10AM - 29 May 24 UTC
### How to reproduce this bug?
To reproduce, use `X-Google-Vertex-Api-Key` as… a header and a vertex model with the Python client.
```python
# This call doesn't work
client = weaviate.connect_to_local(
headers={
"X-Google-Vertex-Api-Key": VERTEX_AI_KEY, # this doesn't work
# "X-Google-Api-Key": VERTEX_AI_KEY, # this works
"X-Google-Studio-Api-Key": AI_STUDIO_KEY,
}
)
collection = client.collections.create(
name="ExampleCollection",
# Define & configure the vectorizer module
vectorizer_config=[
Configure.NamedVectors.text2vec_palm(
name="content",
source_properties=["title"],
model_id="text-embedding-004",
api_endpoint="generativelanguage.googleapis.com",
project_id="devrel-projects",
),
Configure.NamedVectors.multi2vec_palm(
name="poster",
source_properties=["title"],
model_id="textembedding-gecko@003",
location="us-central1",
project_id="devrel-projects"
)
],
)
# this will fail
collection.data.insert({ "title": "a lazy brown fox that doesn't jump, because he is lazy"})
```
### What is the expected behavior?
It should be possible to pass Vertex key `X-Google-Vertex-Api-Key` as the header.
### What is the actual behavior?
`X-Google-Vertex-Api-Key` is not recognised by the Google module
### Versions
Weaviate: 1.24.14
Client: 4.6.1