Integrating OpenAI with Node

I want to give OpenAI a React/JavaScript file and have it analyze it for me and ask it further questions about the code.

All I've done so far is install the openai node package and generate an API key but don't know what API to call in order to pass it a file.

Looking at the docs, what I am trying to do is neither a chat completion or image generation or text-to-speech or speech-to-text, etc.

Does anyone know how I should be calling the API and passing in a file? Maybe it would be easiest if I can find a way to integrate OpenAI with VS Code?