Skip to content

Use Arxiv Plugin, translation success but compiling always failed #5

@IcyFeather233

Description

@IcyFeather233

My code:

import void_terminal as vt
from rich.live import Live
from rich.markdown import Markdown

vt.set_conf(key="API_KEY", value="xxx")
vt.set_conf(key="LLM_MODEL", value="deepseek-chat")
vt.set_conf(key="DEEPSEEK_API_KEY", value="xxx")

plugin = vt.get_plugin_handle('void_terminal.crazy_functions.Latex_Function->TranslateChineseToEnglishInLatexAndRecompilePDF')
plugin_kwargs = vt.get_plugin_default_kwargs()
plugin_kwargs['main_input'] = '2402.10946'
my_working_plugin = plugin(**plugin_kwargs)

with Live(Markdown(""), auto_refresh=False) as live:
    for cookies, chat, hist, msg in my_working_plugin:
        md_str = vt.chat_to_markdown_str(chat)
        md = Markdown(md_str)
        live.update(md, refresh=True)

and the output:

image

in comparison, the web output is:

image

I have tried many times, and the void-terminal arxiv translation always failed. Can you give me some advice? Thanks very much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions