GithubHelp home page GithubHelp logo

openai-translator / openai-translator Goto Github PK

View Code? Open in Web Editor NEW
22.7K 117.0 1.7K 21.45 MB

基于 ChatGPT API 的划词翻译浏览器插件和跨平台桌面端应用 - Browser extension and cross-platform desktop application for translation based on ChatGPT API.

License: GNU Affero General Public License v3.0

JavaScript 0.53% HTML 0.69% TypeScript 84.84% CSS 0.37% Makefile 0.13% Rust 11.96% AppleScript 0.50% Shell 0.03% PowerShell 0.02% Python 0.32% Swift 0.61%
chatgpt chrome-extension openai translation translator browser-extension translator-app

openai-translator's Introduction

NebulaGraph Data Intelligence Suite(ngdi)


English | 中文

The translator that does more than just translation - powered by OpenAI.

MIT License TypeScript Rust Chrome Firefox macOS Windows Linux

Why Yet another Translator

I have developed a Bob plugin that utilizes ChatGPT API to provide global word translation on macOS. However, since not all users have access to macOS to benefit from the plugin, I have created this project!

More than just a browser extension

What began as a Chrome extension has now evolved into a multi-platform desktop app that I am currently developing.

More than just translation

What began as a translation tool has now evolved to include surprisingly effective word polishing and summarization capabilities, accidentally.

How to use

Features

  1. It offers three modes: translation, polishing and summarization.
  2. Our tool allows for mutual translation, polishing and summarization across 55 different languages.
  3. Streaming mode is supported!
  4. It allows users to customize their translation text.
  5. One-click copying
  6. Text-to-Speech (TTS)
  7. Available on all platforms (Windows, macOS, and Linux) for both browsers and Desktop
  8. Support screenshot translation
  9. Support for vocabulary books, as well as support for generating memory aids based on the words in the vocabulary books
  10. Supports both OpenAI and Azure OpenAI Service at the same time

Preparation

Installation

Windows

Install Manually

  1. Download the installation package ending in .exe from the Latest Release page.
  2. Double click the downloaded file to install it.
  3. If prompted as unsafe, you can click on More Info -> Run Anyway to proceed with the installation.
  4. Ready to use!

MacOS

Install Manually

  1. Go to the Latest Release page and download the corresponding chip's .dmg installation package. Note: Use aarch64 version for Apple Silicon machines and run xattr command below.
  2. Double click the downloaded file to install it.
  3. Ready to use!

Troubleshooting

  • "OpenAI Translator" can’t be opened because the developer cannot be verified.

    • Click the Cancel button, then go to the Settings -> Privacy and Security page, click the Still Open button, and then click the Open button in the pop-up window. After that, there will be no more pop-up warnings when opening OpenAI Translator. 🎉

    • If you cannot find the above options in Privacy & Security, or get error prompts such as broken files with Apple Silicon machines. Open Terminal.app and enter the following command (you may need to enter a password halfway through), then restart OpenAI Translator:

      sudo xattr -d com.apple.quarantine /Applications/OpenAI\ Translator.app
  • If you encounter a permission prompt every time you open it, or if you cannot perform a shortcut translation, please go to Settings -> Privacy & Security -> Supporting Features to remove OpenAI Translator, and then re-add OpenAI Translator.

Installing Desktop Clip Extensions

For details, see Desktop Clip Extension

Browser Extension

  1. Visit your Browser Extension Store to install this plugin:

  2. Click on the OpenAI Translator icon in the browser plugin list, and enter the obtained API KEY into the configuration interface that pops up from this plugin.

  3. Refresh the page in the browser to enjoy the smooth translation experience 🎉!

Configure Azure OpenAI Service

const API_URL = `https://${resourceName}.openai.azure.com`
const API_URL_PATH = `/openai/deployments/${deployName}/chat/completions?api-version=${apiVersion}`
  • resourceName: Your Azure OpenAI Service resource name.
  • deployName: Your Azure OpenAI Service model deploy name, you can change your model here.
  • api-version: 2023-05-15, or newer. (supported api-version can be found at Azure's official doc)

License

LICENSE

Star History

NebulaGraph Data Intelligence Suite(ngdi)

openai-translator's People

Contributors

ahonn avatar anyiee avatar blackstar1453 avatar dependabot[bot] avatar fengkx avatar haroldvandy2013 avatar himself65 avatar igoogolx avatar imyuanx avatar jambo2018 avatar jinmiaoluo avatar liby avatar lucinyan avatar maltoze avatar mercury233 avatar okisdev avatar overflowcat avatar pengx17 avatar pylogmon avatar shinchven avatar simon-he95 avatar soeyu avatar tao12345666333 avatar tinsfox avatar tk103331 avatar ttys3 avatar tywtyw2002 avatar vaynepeng avatar xuanwo avatar yetone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openai-translator's Issues

提示error该怎么办?

image
提示error该怎么办?提示内容:You exceeded your current quota, please check your plan and billing details.

firefox浏览器可以使用吗

我点“从文件安装附加组件”并选择压缩包,提示压缩包似乎已损坏,是我的安装方法不对吗

请教达到了使用限制怎么破

Rate limit reached for default-gpt-3.5-turbo in organization org-MnYDCjjkmogNTOZelkmrrb6G on requests per min. Limit: 20 / min. Current: 30 / min. Contact [email protected] if you continue to have issues. Please add a payment method to your account to increase your rate limit. Visit https://platform.openai.com/account/billing to add a payment method.
感谢大佬,刚才尝试了几次之后提示了这个,只能付费才可以继续了么。谢谢

在Discord网页版上出现的问题

在使用Discord网页版的时候,插件会出现一个粘黏鼠标的现象,具体描述:点选要翻译的内容,插件窗口出现后,无法修改输入框中的内容,用backspace键想删除插件输入框中的内容,会直接删除discord输入框里面的内容,同时鼠标还会粘黏在插件弹窗上,移动鼠标弹窗窗口会跟着一起移动,只有将鼠标移出浏览器范围,弹窗的跟随才会停止,然后要快速移动鼠标在浏览器当前的discord页面空白处点击一下,弹窗才会消失。

"Internal server error"

chat.openai.com可以正常訪問,但插件翻譯會顯示"Internal server error".請問有什麼解決方法.謝謝!

Suggestion: Can you please disable the current translation while translating?

If the translation is not completed and the Summarize button is clicked, it may lead to confusion and errors in the output. Therefore, it would be helpful to disable any ongoing translation processes before generating a summary. This will ensure that the summary accurately reflects the original text and does not include any incomplete or inaccurate translations.

有没有更新「交互式翻译」的可能?

试用了贵插件,感觉很好用!
在使用过程中想到一个使用场景的拓展。

现有的场景是:
选择文本 => 翻译 => 结束

一个可能的翻译流程优化:
选择文本 => 翻译 => (提供继续与chatGPT对话的文本框) => 进一步追问文本中的某些概念、关键词 => 结束

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.