krunchosg
krunchosg
1) goto .env and udpate your "OPENAI_GPT_MODEL=gpt-4-vision-preview" 2) goto \whatsapp-chatgpt-master\src\handlers\dalle.ts... line 28 onwards replace the response: const response = await openai.createImage({ model: "dall-e-3", prompt: prompt, n: 1, //size: aiConfig.dalle.size as...
I'm facing the same 401 error. Tried multiple different accounts and api keys.. all stuck with same error 401. Any idea why? is it due to the ChatGPT server busy...
just for more context. below error msgs. An error occured Error: Request failed with status code 401 at ChatGPT.askStream (file:///C:/Users/k.toh/whatsapp-gpt-main/node_modules/chatgpt-official/src/classes/chatgpt.ts:154:11) at processTicksAndRejections (node:internal/process/task_queues:95:5) at ChatGPT.ask (file:///C:/Users/k.toh/whatsapp-gpt-main/node_modules/chatgpt-official/src/classes/chatgpt.ts:97:10) at Module.handleMessageGPT (C:\Users\k.toh\whatsapp-gpt-main\src\handlers\gpt.ts:41:18) at...
> for me it's working only if I paste my openai key into the "docker-compose.yml" file and delete or rename the file .env With that Configuration I'm not getting any...
I'm pretty sure my api key is working as i've tried it on this git >> https://github.com/openai/openai-quickstart-node.git
i managed to overcome the 401 error by hardcoding my api key in src\config.ts but now there's a new error msg when all i did was prompt "Hello" . how...