cool-gigabyte-12797
12/16/2023, 8:13 PMBearer ${apiKey}
,
};
const data = {
model: "gpt-4-1106-preview",
messages: [
{
"role": "system",
"content": "You're a bot that has to click on a button that changes the color of the filtered car by the preferences of the user."
},
{
"role": "user",
"content": Go to ${workflow.conflink} and select the paint of the Lamborghini to be ${workflow.color}.
}
],
temperature: 0,
max_tokens: 1024,
top_p: 1,
frequency_penalty: 0,
presence_penalty: 0,
};
try {
const response = await axios.post(apiUrl, data, { headers });
console.log(response.data.choices[0].message.content)
colorAI = response.data.choices[0].message.content
workflow.colorAI = colorAI
} catch (error) {
console.error('There was an error:', error);
}
}
await filteredCar();