skip to Main Content

Html – Cant solve type error. Probably a basic question but getting no where with what seems to be a very simple piece of code

code: const generateResponse = async (incomingChatLi) => { const API_URL = "https://api.openai.com/v1/chat/completions"; const pElement = document.createElement("p"); // fetch response from openai api & define properties requestOptions = { method: 'POST', headers: { "Content-Type": "application/json", "Authorization": `Bearer ${API_KEY}` }, body: JSON.stringify({…

VIEW QUESTION

Twitter-api – tweepy.errors.BadReque st: 400 Bad Request 215 – Bad Authentication data. THIS APPEARS WHEN I TRY TO USE "api.home_timeline( )"

iam tring to make a twitter bot, but when i run show this in the terminal : Traceback (most recent call last): File "c:UsersPedroOneDriveÁrea de TrabalhoPROJETOSBOTTMADULOVERBOT.py", line 20, in ptwitts = api.home_timeline() File "C:UsersPedroAppDataRoamingPythonPython310site-packagestweepyapi.py", line 33, in wrapper return method(*args,…

VIEW QUESTION
Back To Top
Search