The project is in a healthy, maintained state
gpt-4o-miniを使って日本語に翻訳する
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 3.1.4
~> 7.1.0
 Project Readme

TranslationAPI

Translate using APIs.
Requires api key.

For OpenAI

  1. touch .env
  2. Add OPENAI_API_KEY=YOUR_API_KEY
  3. Optional: ENV["OPENAI_MODEL"](default: gpt-4o-mini)
  4. TranslationAPI::Mediator.new.translate("text")

Init Options

  • output_logs (default: true)
  • language (default: "japanese")
  • agent (default: :openai)
  • except_words (default: [])

Output

Example

Exec ruby example.rb "text"