does this code still work for gpt-4: let colorA...
# 🌎general
c
does this code still work for gpt-4: let colorAI = workflow.colorAI; const color = workflow.color; const conflink = workflow.conflink; async function filteredCar() { const apiKey = 'as - asdasdasdasd'; const apiUrl = 'https://api.openai.com/v1/chat/completions'; const headers = { 'Content-Type': 'application/json', 'Authorization':
Bearer ${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();