async function askChatGpt(message) {
const configuration = new openai.Configuration({
apiKey: "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",
});
const openAIClient = new openai.OpenAIApi(configuration);
const response = await openAIClient.createChatCompletion({
model: 'gpt-3.5-turbo',
messages: [{
role: 'user',
content: message,
}]
});
return response.data.choices[0].message.content;
}