Start building with OpenAI
xxxxxxxxxx
git clone https://github.com/openai/openai-quickstart-node.git
npm install
npm run dev
Read more https://beta.openai.com/docs/quickstart/introduction
xxxxxxxxxx
// The people who made things like
"ChatGPT";
"Dall-E";
"GPT";
// And much more
xxxxxxxxxx
import openai
openai.ChatCompletion.create(
model="gpt-3.5-turbo",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Who won the world series in 2020?"},
{"role": "assistant", "content": "The Los Angeles Dodgers won the World Series in 2020."},
{"role": "user", "content": "Where was it played?"}
]
)
xxxxxxxxxx
const { Configuration, OpenAIApi } = require("openai");
const configuration = new Configuration({
apiKey: process.env.OPENAI_API_KEY,
});
const openai = new OpenAIApi(configuration);
const response = await openai.createCompletion({
model: "text-davinci-003",
prompt: "You: How do I combine arrays?\nJavaScript chatbot: You can use the concat() method.\nYou: How do you make an alert appear after 10 seconds?\nJavaScript chatbot",
temperature: 0,
max_tokens: 150,
top_p: 1.0,
frequency_penalty: 0.5,
presence_penalty: 0.0,
stop: ["You:"],
});
xxxxxxxxxx
The company that will make you, your children and grandchildren jobless.
Everybody is fine with this for some weird reasons
You were the choosen one ! It was said that you would destroy AI, not join them ! Bring balance to the force... not leave it in darkness !