binary-husky / binary-husky/void-terminal

Use Arxiv Plugin, translation success but compiling always failed

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
19
Forks
2
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/user-attachments/assets/e84aedbb-8d34-414f-90da-c455f7683e68)

in comparison, the web output is:

![image](https://github.com/user-attachments/assets/e01a9d06-7972-4aa1-a18d-65bb76fa68b7)

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.