Merge pull request #1 from LiteyukiStudio/eilles-main

🌟优化部分内容
This commit is contained in:
金羿ELS
2025-01-29 00:36:53 +08:00
committed by GitHub
parent 46c1721a84
commit 4f5cb89365
10 changed files with 142 additions and 105 deletions

View File

@ -281,8 +281,7 @@ class ConvertLatex:
"""
LaTeX 在线渲染
参数
====
参数:
latex: str
LaTeX 代码
@ -294,8 +293,7 @@ class ConvertLatex:
超时时间
retry_: int
重试次数
返回
====
返回:
bytes
图片
"""
@ -305,6 +303,15 @@ class ConvertLatex:
@staticmethod
async def auto_choose_channel() -> ConvertChannel:
"""
依据访问延迟,自动选择 LaTeX 转换服务频道
返回
====
ConvertChannel
LaTeX 转换服务实例
"""
async def channel_test_wrapper(
channel: type[ConvertChannel],
) -> Tuple[int, type[ConvertChannel]]: