Super comfortable ChatGPT client. Ask to ChatGPT with your text editor.
- Python 3.11.0+
- Windows
- Because use batch files.
- If Linux or Mac User, create wrapper script yourself properly.
- API Key:
- Prepare your OPENAI_API_KEY.
- Prompt files and launcher batches:
- Create
i.bat
fromi.bat.sample
. For example:1.bat
,2.bat
,3.bat
, ... - Create
i.md
. For example:1.md
,2.md
,3.md
, ...
- Create
- Log files:
- Create
askailog.md
- Create
- (If need) Startup Script:
- Create
aiprepare.bat
fromaiprepare.bat.sample
- Create
- 1: Execute
aiprepare.bat
- repeative
- 2: Write a prompt to
i.md
- 3: Execute
i.bat
- 2: Write a prompt to
Ans: A file where all previous prompts and their response results are saved.
Ans: possible!
Edit askai.py
directly.
Ans: use --use-ssl (your-cert-file).crt
.
Ans: 秀丸エディタ(Hidemaru Editor), A japanese high-quality text editor!
Ans: An editor or IDE which has Multi-tab, Markdown oriented and Auto reloading.
I think VSCode is better choice.
Ans: Depends on the person.
In my case, 3 slots were suitable.
Ans: like this.
.bash_profile_askai:
alias python="/usr/local/bin/python3"
alias pip="/Library/Frameworks/Python.framework/Versions/3.11/bin/pip3"
export OPENAI_API_KEY=XXXX
function a1(){
python askai.py --input 1.md &
}
function a2(){
python askai.py --input 2.md &
}
function a3(){
python askai.py --input 3.md &
}
export -f a1
export -f a2
export -f a3
alias 1="a1"
alias 2="a2"
alias 3="a3"
execute:
$ source ~/.bash_profile_askai
$ 1