Simplify to address issues and make more robust https://github.com/briansunter/logseq-plugin-gpt3-openai/issues/137