Skip to content

A script that adds a translation button to selected text in Tampermonkey . Uses a local API koboldcpp for translation.

License

Notifications You must be signed in to change notification settings

cronrpc/Translate-Button

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Translate-Button-Tampermonkey

Uses a local API KoboldCpp for translation.

English | 中文

Translate Button:

alt text

It uses a local API for translation.

  • This script utilizes KoboldCpp, with translation done after opening the local port 5001.

  • Tested with the Mistral-Nemo-Instruct-2407.Q8_0.gguf model, which provides good support for Chinese, Japanese, and English languages.

  • You can change the target language by editing the API parameters and prompt in the js file.

You can switch target language by:

alt text

采用本地API进行翻译

  • 这里使用的是KoboldCpp,开启本地5001端口后进行翻译。

  • 经测试,Mistral-Nemo-Instruct-2407.Q8_0.gguf模型对中日英语言支持良好。

  • 通过编辑js中的API参数和prompt可以更改目标语言。

About

A script that adds a translation button to selected text in Tampermonkey . Uses a local API koboldcpp for translation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published