full-eve-38046
07/11/2024, 2:27 PMwooden-beard-40210
07/11/2024, 2:48 PMconst apiKey = '<OpenAI's APIKey>';
const {data} = await axios.post("https://api.openai.com/v1/chat/completions", {
"model": "gpt-3.5-turbo-0301",
"messages": [{"role": "user", "content": event.preview}]
}, { headers: {'Authorization': `Bearer ${apiKey}`}});
workflow.variableName = data.choices[0].message.content;
this is a code to make an API call to openAI API, so you can try to work around thisfull-eve-38046
07/11/2024, 2:48 PMwooden-beard-40210
07/11/2024, 2:49 PMconst apiKey = '<OpenAI's APIKey>';
const {data} = await axios.post("https://api .openai. com/v1/chat/completions", {
"model": "gpt-3.5-turbo-0301",
"messages": [{"role": "user", "content": event.preview}]
}, { headers: {'Authorization': `Bearer ${apiKey}`}});
workflow.variableName = data.choices[0].message.content;
this is the code to make an API call to the openAI API so you can try to work around thisfull-eve-38046
07/11/2024, 2:49 PMfull-eve-38046
07/11/2024, 2:50 PMwooden-beard-40210
07/11/2024, 2:51 PMworkflow.variableName donc il suffit simplement de l'utiliser dans une text cardwooden-beard-40210
07/11/2024, 2:51 PMfull-eve-38046
07/11/2024, 2:52 PMfull-eve-38046
07/11/2024, 2:53 PMfull-eve-38046
07/11/2024, 2:53 PMwooden-beard-40210
07/11/2024, 2:54 PMfull-eve-38046
07/11/2024, 2:54 PMwooden-beard-40210
07/11/2024, 2:56 PMfull-eve-38046
07/11/2024, 2:59 PMfull-eve-38046
07/11/2024, 3:15 PMwooden-beard-40210
07/11/2024, 3:18 PM