Update get_R_group_sub_agent.py
Browse files- get_R_group_sub_agent.py +6 -3
get_R_group_sub_agent.py
CHANGED
|
@@ -28,8 +28,7 @@ from molnextr.chemistry import _convert_graph_to_smiles
|
|
| 28 |
import os
|
| 29 |
|
| 30 |
|
| 31 |
-
|
| 32 |
-
AZURE_ENDPOINT = os.getenv("AZURE_ENDPOINT")
|
| 33 |
|
| 34 |
|
| 35 |
|
|
@@ -316,6 +315,9 @@ def process_reaction_image_with_product_variant_R_group(image_path: str) -> dict
|
|
| 316 |
Returns:
|
| 317 |
dict: 整理后的反应数据,包括反应物、产物和反应模板。
|
| 318 |
"""
|
|
|
|
|
|
|
|
|
|
| 319 |
|
| 320 |
client = AzureOpenAI(
|
| 321 |
api_key=API_KEY,
|
|
@@ -578,7 +580,8 @@ def process_reaction_image_with_product_variant_R_group(image_path: str) -> dict
|
|
| 578 |
|
| 579 |
|
| 580 |
def process_reaction_image_with_table_R_group(image_path: str) -> dict:
|
| 581 |
-
|
|
|
|
| 582 |
client = AzureOpenAI(
|
| 583 |
api_key=API_KEY,
|
| 584 |
api_version='2024-06-01',
|
|
|
|
| 28 |
import os
|
| 29 |
|
| 30 |
|
| 31 |
+
|
|
|
|
| 32 |
|
| 33 |
|
| 34 |
|
|
|
|
| 315 |
Returns:
|
| 316 |
dict: 整理后的反应数据,包括反应物、产物和反应模板。
|
| 317 |
"""
|
| 318 |
+
|
| 319 |
+
API_KEY = os.getenv("API_KEY")
|
| 320 |
+
AZURE_ENDPOINT = os.getenv("AZURE_ENDPOINT")
|
| 321 |
|
| 322 |
client = AzureOpenAI(
|
| 323 |
api_key=API_KEY,
|
|
|
|
| 580 |
|
| 581 |
|
| 582 |
def process_reaction_image_with_table_R_group(image_path: str) -> dict:
|
| 583 |
+
API_KEY = os.getenv("API_KEY")
|
| 584 |
+
AZURE_ENDPOINT = os.getenv("AZURE_ENDPOINT")
|
| 585 |
client = AzureOpenAI(
|
| 586 |
api_key=API_KEY,
|
| 587 |
api_version='2024-06-01',
|