結果 : how to call openai api in javascript