Writing Copilot is a tool for writing fictions. It is designed to help you write stories by providing autocompletion based on the text you have written.
You can install Writing Copilot by running the following command:
pip install together
pip install -q -U google-generativeaiThen, before usage, input your together API key or Gemini API key:
export TOGETHER_API_KEY=your_together_api_key
export GOOGLE_API_KEY=your_google_api_keyTo use Writing Copilot, you can run the following command:
python ai_editor.py $file_path --model gemini-1.5-pro-exp-0801 --fill_len 20 --system_prompt 黄文 --sliding_window -1Then, you can start writing your story. Writing Copilot will provide autocompletion based on the text you have written.
To input user instructions for plotline, character, setting, etc, you can use the following format in the terminal editor:
<user>
plotline: A
character 1: B
...
</user>
Note that if the user instructions are not enclosed with '', Writing Copilot will help you generate a prompt.