Update rxnim.py
Browse files
rxnim.py
CHANGED
@@ -11,16 +11,12 @@ from getReaction import get_reaction
|
|
11 |
|
12 |
|
13 |
class RXNIM:
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
# # δ»η―ε’ειθ―»ε API Key
|
21 |
-
# self.API_KEY = os.environ.get('key')
|
22 |
-
# if not self.API_KEY:
|
23 |
-
# raise ValueError("Environment variable 'KEY' not set.")
|
24 |
|
25 |
# Set up client
|
26 |
self.client = AzureOpenAI(
|
|
|
11 |
|
12 |
|
13 |
class RXNIM:
|
14 |
+
|
15 |
+
def __init__(self, api_version='2024-06-01', azure_endpoint='https://hkust.azure-api.net'):
|
16 |
+
# δ»η―ε’ειθ―»ε API Key
|
17 |
+
self.API_KEY = os.environ.get('key')
|
18 |
+
if not self.API_KEY:
|
19 |
+
raise ValueError("Environment variable 'KEY' not set.")
|
|
|
|
|
|
|
|
|
20 |
|
21 |
# Set up client
|
22 |
self.client = AzureOpenAI(
|