We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de25487 commit 3a320ebCopy full SHA for 3a320eb
tests/verify_functions.py
@@ -1,4 +1,5 @@
1
import os
2
+from typing import Union
3
4
import azure.identity
5
import openai
@@ -9,7 +10,7 @@
9
10
load_dotenv()
11
API_HOST = os.getenv("API_HOST")
12
-client: openai.OpenAI | openai.AzureOpenAI
13
+client: Union[openai.OpenAI, openai.AzureOpenAI]
14
15
if API_HOST == "azure":
16
tests/verify_openai.py
if (azure_openai_version := os.getenv("AZURE_OPENAI_VERSION")) is None:
0 commit comments