mattergen转服务
This commit is contained in:
@@ -23,7 +23,6 @@ from pymatgen.io.cif import CifWriter
|
||||
from mars_toolkit.core.cif_utils import remove_symmetry_equiv_xyz
|
||||
from mars_toolkit.core.llm_tools import llm_tool
|
||||
from mars_toolkit.core.config import config
|
||||
from mars_toolkit.core.error_handlers import handle_general_error
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -189,4 +188,4 @@ async def optimize_crystal_structure(
|
||||
# 直接返回结果或抛出异常
|
||||
return await asyncio.to_thread(run_optimization)
|
||||
except Exception as e:
|
||||
return handle_general_error(e)
|
||||
return str(e)
|
||||
|
||||
Reference in New Issue
Block a user