# Schema shows both Azure OpenAI and openAI endpoints

**URL:** <https://forum.weaviate.io/t/schema-shows-both-azure-openai-and-openai-endpoints/1744>\
**Category:** Support\
**Tags:** python\
**Created:** [March 18, 2024, 3:22am UTC](https://forum.weaviate.io/t/schema-shows-both-azure-openai-and-openai-endpoints/1744 "2024-03-18T03:22:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sridhar\_Iyer](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/sridhar_iyer/32/1148_2.png) [@Sridhar\_Iyer](https://forum.weaviate.io/u/Sridhar_Iyer)\
**Post date:** [March 18, 2024, 3:22am UTC](https://forum.weaviate.io/t/schema-shows-both-azure-openai-and-openai-endpoints/1744/1 "2024-03-18T03:22:09Z")

</div>

### Description

client set with Azure openAI key

client = weaviate.Client(  
url= WEAVIATE\_DB\_URL, # Replace with your endpoint  
auth\_client\_secret=weaviate.auth.AuthApiKey(api\_key=WEAVIATE\_API\_KEY), # Replace w/ your Weaviate instance API key  
additional\_headers = {  
“X-Azure-Api-Key”: “…”  
}  
)

schema has the following:

```
    {
        'name': 'content',
        'dataType': ['text']
    },
],
'vectorizer': 'text2vec-openai',
'moduleConfig': {
    'tect2vec-openai': {
        "resourceName": "xxxx",
        "deploymentId": "text-embedding-ada-002",
        "baseURL": "https://xxxx.openai.azure.com/", # azure end point
        "vectorizeClassName" : False,
        "dimensions": 1536, # Parameter only applicable for `v3` model family and newer
        "type": "text"

    }
},

```

}

printing the schema shows the following

```
   "preset": "en",
      "removals": null
    }
  },
  "moduleConfig": {
    "tect2vec-openai": {
      "baseURL": "https://sridiyer-ai-us-west-aiservices-1506555731.openai.azure.com/",
      "deploymentId": "text-embedding-ada-002",
      "dimensions": 1536,
      "resourceName": "xxxx",
      "type": "text",
      "vectorizeClassName": false
    },
    "text2vec-openai": {
      "baseURL": "https://api.openai.com",
      "model": "ada",
      "vectorizeClassName": true
    }
  },

```

baseURL for text2vec-openai takes the openaI url not the azure baseURL

### Server Setup Information

weaviate cloud service (on your cloud)

- Weaviate Server Version:
- Deployment Method: 
- Multi Node? Number of Running Nodes:
- Client Language and Version:

### Any additional Information

how to make the client access Azure OpenAI not the real OpenAI. thanks

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [March 18, 2024, 12:22pm UTC](https://forum.weaviate.io/t/schema-shows-both-azure-openai-and-openai-endpoints/1744/2 "2024-03-18T12:22:25Z")

</div>

Hi!

Welcome to our community 🤗

It should be using Azure OpenAi… don’t you see activities on it’s panel?

As you never passed the OpenAI APIKEY, and passes all the necessary data to use openai with azure on the client, Weaviate should be using Azure.

Thanks!

---

<div class="post-metadata">

**Author:** ![Sridhar\_Iyer](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/sridhar_iyer/32/1148_2.png) [@Sridhar\_Iyer](https://forum.weaviate.io/u/Sridhar_Iyer)\
**Post date:** [March 18, 2024, 12:36pm UTC](https://forum.weaviate.io/t/schema-shows-both-azure-openai-and-openai-endpoints/1744/3 "2024-03-18T12:36:23Z")

</div>

Hi, Thanks so much. Stupid me made a typo. In the moduleConfig I put the name of the model as "“tect2vec-openai”. teCt not teXt. once I fixed the typo it is working fine!!! (wish I had caught the typo a few hours before spending all this time trying 4.\* / 3.\* clients, posting here, etc.
