导言
import OpenAI from "openai";
const openai = new OpenAI("https://open.api.gu28.top");
async function main() {
const completion = await openai.chat.completions.create({
messages: [{ role: "system", content: "You are a helpful assistant." }],
model: "gpt-3.5-turbo",
});
console.log(completion.choices[0]);
}
main();
修改于 2024-11-26 06:24:26