Skip to content

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

English | 中文

介绍

执行命令并且使用大模型对输出进行翻译. (翻译好坏和速度主要和模型性能有关)

下载

  • 方式一: 用Docker镜像
    • git clone https://github.com/NezhaFan/translate-cli.git
    • docker build -t tc .
    • 设置环境变量 alias tc='docker run --rm -i --tty=false LLM_URL=https://ark.cn-beijing.volces.com/api/v3 -e LLM_KEY=xxx -e LLM_MODEL=doubao-1.5-pro-32k-250115 tc'
  • 方式二: 用Docker自己编译 (linux or mac)
    • git clone https://github.com/NezhaFan/translate-cli.git
    • cd translate-cli && chmod +x build.sh && sh build.sh
  • 方式三: 你有golang环境
    • go install github.com/NezhaFan/translate-cli@latest
    • mv $GOPATH/bin/translate-cli $GOPATH/bin/tc

配置

使用

用管道的形式把输出传给翻译程序 curl -h | tc

可怜可怜孩子,给个🌟再走吧...

About

Use LLM to translate command output. (Deepseek, OpenAI, Ollama) . 使用大模型对命令行的输出进行翻译

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages