Skip to content

Commit 3a320eb

Browse files
committed
Use 3.9 syntax
1 parent de25487 commit 3a320eb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/verify_functions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
from typing import Union
23

34
import azure.identity
45
import openai
@@ -9,7 +10,7 @@
910
load_dotenv()
1011
API_HOST = os.getenv("API_HOST")
1112

12-
client: openai.OpenAI | openai.AzureOpenAI
13+
client: Union[openai.OpenAI, openai.AzureOpenAI]
1314

1415
if API_HOST == "azure":
1516

tests/verify_openai.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
from typing import Union
23

34
import azure.identity
45
import openai
@@ -9,7 +10,7 @@
910
load_dotenv()
1011
API_HOST = os.getenv("API_HOST")
1112

12-
client: openai.OpenAI | openai.AzureOpenAI
13+
client: Union[openai.OpenAI, openai.AzureOpenAI]
1314

1415
if API_HOST == "azure":
1516
if (azure_openai_version := os.getenv("AZURE_OPENAI_VERSION")) is None:

0 commit comments

Comments
 (0)