How to Use Text Generation APIs with JavaScript | NanoGPT