How to use execute code for open ai?
# 🤝help
Hi! I'm messing with api and botpress. But I'm struggling to get it working with the open ai api. I'm using this code (from the botpress website) but it's not working. What's going wrong? Thank you in advance 🎂 const apiKey = ''; const {data} = await"", { "model": "gpt-3.5-turbo-0301", "messages": [{"role": "user", "content": event.preview}] }, { headers: {'Authorization':
Bearer ${apiKey}
}}); workflow.variableName = data.choices[0].message.content;