Skip to content

Commit 5e4b879

Browse files
authored
Merge pull request #1623 from weaviate/fix/inconsistent-openai-azure-naming
Rename `openai_azure` in `GenerativeConfig` to `azure_openai`
2 parents 366d4f8 + e1723e3 commit 5e4b879

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

docs/changelog.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changelog
22
=========
33

4+
Version 4.12.1
5+
--------------
6+
This patch version includes:
7+
- Renames ``GenerativeConfig.openai_azure`` to ``GenerativeConfig.azure_openai`` to align with the convention of ``Configure.Generative.azure_openai``
8+
49
Version 4.12.0
510
--------------
611
This minor version includes:

test/collection/test_classes_generative.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def test_generative_parameters_images_parsing(
362362
),
363363
),
364364
(
365-
GenerativeConfig.openai_azure(
365+
GenerativeConfig.azure_openai(
366366
api_version="2020-05-03",
367367
base_url="http://localhost:8080",
368368
deployment_id="12345678901234567890123456789012",

weaviate/collections/classes/generative.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ def openai(
886886
)
887887

888888
@staticmethod
889-
def openai_azure(
889+
def azure_openai(
890890
*,
891891
api_version: Optional[str] = None,
892892
base_url: Optional[str] = None,

0 commit comments

Comments
 (0)