Skip to content

Commit 9e5a71d

Browse files
committed
fix: update API endpoints, logging, and data types for enhanced compatibility and clarity
1 parent 1a1db09 commit 9e5a71d

5 files changed

Lines changed: 7 additions & 4 deletions

File tree

agents/matmaster_agent/base_agents/job_agent.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,9 @@ async def _run_async_impl(
404404
):
405405
raw_result = part.function_response.response['result']
406406
results = json.loads(raw_result.content[0].text)
407+
logger.info(
408+
f"[SubmitCoreCalculationMCPLlmAgent] results = {results}"
409+
)
407410
origin_job_id = results['job_id']
408411
job_name = part.function_response.name
409412
job_status = results['status']

agents/matmaster_agent/constant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
DFLOW_K8S_API_SERVER = 'https://workflows.deepmodeling.com'
3737
BOHRIUM_API_URL = 'https://bohrium-api.dp.tech'
3838

39-
OpenAPIJobAPI = f"{OPENAPI_HOST}/openapi/v1/job"
39+
OpenAPIJobAPI = f"{OPENAPI_HOST}/openapi/v1/sandbox/job"
4040

4141
MATERIALS_ACCESS_KEY = str(os.getenv('MATERIALS_ACCESS_KEY'))
4242
MATERIALS_PROJECT_ID = int(os.getenv('MATERIALS_PROJECT_ID'))

agents/matmaster_agent/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class JobResult(BaseModel):
5151

5252
class BohrJobInfo(BaseModel):
5353
origin_job_id: str
54-
job_id: int
54+
job_id: Union[int, str]
5555
job_query_url: str
5656
job_detail_url: str
5757
job_status: JobStatus

agents/matmaster_agent/structure_generate_agent/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
] = 'registry.dp.tech/dptech/dp/native/prod-788025/structure-generate-agent:small'
2727
StructureGenerateBohriumExecutor['machine']['remote_profile'][
2828
'machine_type'
29-
] = 'c8_m31_1 * NVIDIA T4'
29+
] = 'c8_m32_1 * NVIDIA 4090'
3030

3131
sse_params = SseServerParams(url=StructureGenerateServerUrl)
3232

agents/matmaster_agent/structure_generate_agent/constant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
StructureGenerateAgentName = 'structure_generate_agent'
44

55
if CURRENT_ENV in ['test', 'uat']:
6-
StructureGenerateServerUrl = 'http://pfmx1355864.bohrium.tech:50003/sse'
6+
StructureGenerateServerUrl = 'http://hftp1387064.bohrium.tech:50001/sse'
77
else:
88
StructureGenerateServerUrl = 'https://cystalformer-uuid1754551471.app-space.dplink.cc/sse?token=1750cd294e6c4270946ae37107a725ff'

0 commit comments

Comments
 (0)