Funding request while using Node.JS

My code in Node.JS is simple and when I run it I get a message and asks for funding these projects. Is that normal? It sounds weird!
3 packages are looking for funding
npm fund
openai-quickstart-node@0.1.0
├── “Browserslist - Open Collective
│ └── caniuse-lite@1.0.30001441
├── “PostCSS and Autoprefixer - Open Collective
│ └── postcss@8.4.14

I believe this is a normal thing, open source projects broadly need funding to support them so package maintainers add things like this to raise awareness when they are in need of funds.

Is this a valid code for Node.js to invoke ChatGPT?

const openai = require(“openai”);

// Set the API key
openai.apiKey = “sk-JPXXX”;

// Define the prompt
const prompt = “What’s the weather like today?”;

// Generate a response
openai.completions
.create({
engine: “text-davinci-002”,
prompt: prompt,
max_tokens: 1024,
n: 1,
stop: null,
temperature: 0.5,
})
.then((response) => {
// Print the response
console.log(response.choices[0].text);
});

You can’t invoke ChatGPT via the API right now, the API for ChatGPT is only available for waitlist via this form: OpenAI ChatGPT API Waitlist

2 Likes

Thank you for clarifying. It seems at this point ChatGPT can be used through their Web based UI only. right?

Yes @Shirazi2023

ChatGPT is not yet available via an API. However, hold tight because it’s coming soon.

1 Like