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

Can't connect to Google Vertex

$
0
0

I am faced with the same problem, but using X-Palm-Api-Key does not seem to work.

Vertex AI is not compatible with API Keys anymore, hence I am trying Oauth2, service acc or simply an access token.

EDIT: It now uploads the properties, but does not vectorize.

My cluster is 1.25.10 and my python dependency client is 4.7.1.

I am basically running these lines

client = weaviate.connect_to_weaviate_cloud(
    cluster_url=os.getenv("WEAVIATE_URL"),
    auth_credentials=weaviate.auth.AuthApiKey(api_key=os.getenv("WEAVIATE_API_KEY")),
    headers={"X-OpenAI-Api-Key": os.getenv("OPENAI_API_KEY"),
             # "X-Google-Vertex-Api-Key": os.getenv("GOOGLE_ACCESS_TOKEN"),
             "X-Palm-Api-Key": os.getenv("GOOGLE_ACCESS_TOKEN")
             }
)

for q in tqdm(collection_src.iterator()):
     collection_tgt.data.insert(properties=q.properties, uuid=q.uuid)

Viewing all articles
Browse latest Browse all 3601

Trending Articles