Refine Japanese with OpenAI

March 5, 2023 ยท View on GitHub

This extension refines your text in Japanese with OpenAI.

  • Suggest the improved your Japanese text using OpenAI.
  • Apply the suggested improvements to your text.

Animation: Usage image

Commands

Available commands:

"commands": [
  {
    "command": "com.github.chick-p.vscode-japanese-refinement-openai.refineJapanese",
    "title": "Refine Japanese with OpenAI"
  },
  {
    "command": "com.github.chick-p.vscode-japanese-refinement-openai.askApiKey",
    "title": "Set OpenAI API key (Refine Japanese with OpenAI)"
  }
]

Installation

This extension is not available on VSCode Marketplace. Install locally:

code --install-extension vscode-japanese-refinement-openai-0.0.1.vsix

Getting Started

Steps to begin:

  1. Manually install this extension.
  2. Generate your personal OpenAI API key.
  3. Use the command pallet to run the "Set OpenAI API key" command and input your API key.
  4. Select the text you wish to refine in the editor.
  5. Right click and select "Refine Japanese with OpenAI" menu.

Extension Settings

Available settings:

// The maximum number of tokens to generate in the completion.
// See https://platform.openai.com/docs/api-reference/completions/create#completions/create-max_tokens
"vscode-japanese-refinement-openai.openai.maxTokens": {
  "type": "number",
  "default": 2048
}