Skip to content

ChatGPT APIにアクセスして指定した文字列を日本語に翻訳した結果を返すツール

License

Notifications You must be signed in to change notification settings

toriwasa/translate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

release

What's This?

  • ChatGPT API にアクセスして、指定した文字列を日本語に翻訳した結果を返すCLIツール
  • 有効なChatGPTのAPIキーが必要

Usage

  • とりあえずLinuxでの実行方法
# 環境変数 OPENAI_API_KEY にAPIキーを指定する
export OPENAI_API_KEY=sk-xxxxxxxxxx

# 翻訳して欲しい文字列を指定する
./translate -t "Hello, World!"
translated: こんにちは、世界!

About

ChatGPT APIにアクセスして指定した文字列を日本語に翻訳した結果を返すツール

Resources

License

Stars

Watchers

Forks

Packages

No packages published