# Is it safe to run the 'text2vec-openai' modules using Azure OpenAI with the current API Version

**URL:** <https://forum.weaviate.io/t/is-it-safe-to-run-the-text2vec-openai-modules-using-azure-openai-with-the-current-api-version/1770>\
**Category:** General\
**Created:** [March 20, 2024, 6:26am UTC](https://forum.weaviate.io/t/is-it-safe-to-run-the-text2vec-openai-modules-using-azure-openai-with-the-current-api-version/1770 "2024-03-20T06:26:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krisbiantoro\_Prabowo](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/krisbiantoro_prabowo/32/606_2.png) [@Krisbiantoro\_Prabowo](https://forum.weaviate.io/u/Krisbiantoro_Prabowo)\
**Post date:** [March 20, 2024, 6:26am UTC](https://forum.weaviate.io/t/is-it-safe-to-run-the-text2vec-openai-modules-using-azure-openai-with-the-current-api-version/1770/1 "2024-03-20T06:26:56Z")

</div>

Hello!  
So i just wondering since i received the same notification with [this post](https://forum.weaviate.io/t/generative-openai-module-is-using-a-deprecated-api-version-azure-stopping-support-on-2-april-2024/1403) from Azure. Since the `generative-openai` module is still using the “preview” API version, the API needs to get updated. Then, I look up into text2vec-openai modules and it looks like the modules still using the `api-version=2022-12-01` version. Can we safely ignore the warning notification and still using this version for text2vec-openai modules?

---

<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 20, 2024, 5:08pm UTC](https://forum.weaviate.io/t/is-it-safe-to-run-the-text2vec-openai-modules-using-azure-openai-with-the-current-api-version/1770/2 "2024-03-20T17:08:57Z")

</div>

Hi! As long as Azure/OpenAI supports this api version, it should work.

Note that this module also support different versions:

> <https://github.com/weaviate/weaviate/blob/01b8f248fac0dc99c621c8a8faba04b60b69a445/modules/generative-openai/config/class_settings.go#L71-L79>

Let me know if this helps!

---

<div class="post-metadata">

**Author:** ![Krisbiantoro\_Prabowo](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/krisbiantoro_prabowo/32/606_2.png) [@Krisbiantoro\_Prabowo](https://forum.weaviate.io/u/Krisbiantoro_Prabowo)\
**Post date:** [March 21, 2024, 2:16am UTC](https://forum.weaviate.io/t/is-it-safe-to-run-the-text2vec-openai-modules-using-azure-openai-with-the-current-api-version/1770/3 "2024-03-21T02:16:03Z")

</div>

Hello thank you for you answers it do helps me.  
I looked up into the documentation: [Generative Search - OpenAI | Weaviate - Vector Database](https://weaviate.io/developers/weaviate/modules/reader-generator-modules/generative-openai) but it’s look like i don’t find any example source code to config the api version for generative-openai to be exact. If you don’t mind could you give some example how to config it?

---

<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 25, 2024, 12:52pm UTC](https://forum.weaviate.io/t/is-it-safe-to-run-the-text2vec-openai-modules-using-azure-openai-with-the-current-api-version/1770/4 "2024-03-25T12:52:33Z")

</div>

Hi!

Sure! If you are using the python v4 client, it will auto complete, making the developer experience way better than the v3.

Also, we have some nice recipes here that can help you:

> **[GitHub - weaviate/recipes: This repository shares end-to-end notebooks on how...](https://github.com/weaviate/recipes)**
>
> This repository shares end-to-end notebooks on how to use various features and integrations with Weaviate at the core! - weaviate/recipes

here is how you can use the generative module for openai:

```auto
collection = client.collections.create(
    name="Collection",
    vectorizer_config=wvc.config.Configure.Vectorizer.text2vec_openai(),
    generative_config=wvc.config.Configure.Generative.openai()
)

```

note that, leaving the mouse over `openai` for the generative\_config will show you all the options you have for that module:

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/weaviate/original/2X/9/9be70412a10f6b1ccee74ceb1d4b81f77748fcab.png)

Let me know if that helps!

THanks!
