Public
Back
Version 0
4/9/2023
export let autoGPT_Test2 = (async () => {
const { Configuration, OpenAIApi } = await import("npm:openai");
const configuration = new Configuration({
apiKey: me.secrets.openai,
});
const openai = new OpenAIApi(configuration);
const completion = await openai.createChatCompletion({
model: "gpt-3.5-turbo",
messages: [
{ role: "system", content: stevekrouse.autoGPTPrompt },
],
});
return completion;
})();
Updated: October 23, 2023