Description
Hi Weaviate team,
I’m using Weaviate Cloud (WCD) with the text2vec-openai module enabled. I’ve successfully created a class with the vectorizer set to OpenAI and can run semantic queries using curl if I pass the X-OpenAI-Api-Key header each time.
Now I want to integrate this into my Python backend (e.g., libwv.py) and have two questions:
⸻
- Do I really need to inject the OpenAI API key into my Python code for every semantic operation (both POST /objects and GraphQL nearText queries)?
I’ve tried specifying the apiKey at the class level (moduleConfig), but it seems to have no effect unless I explicitly pass the key with the request header. Is this the expected behavior on WCD?
⸻ - Can I use my Azure OpenAI API key instead of a direct OpenAI key (api.openai.com)?
If so, how should I configure the baseURL, model, and version fields for the text2vec-openai module in this case?