数学工具
解决问题
def solve_problem(problem: str, **config) -> str
(openai<1) 解决数学问题。
参数:
problem
str - 问题描述。config
可选, dict - API 调用的配置。
返回值:
str
- 问题的解决方案。
移除方框
def remove_boxed(string: str) -> Optional[str]
来源:https://github.com/hendrycks/math 提取 \boxed{...} 环境中的文本。
示例:
remove_boxed("\boxed{\frac{2}{3}}")
\frac{2}{3}