Open Henrobal opened 8 months ago
Je me suis penché sur la question, j'ai changé l'emplacement du dossier et j'ai retiré le s des HTTPS qui deviennent donc des HTTP, ça fonctionne presque. Maintenant j'ai une autre erreur.
Error while sending message to OpenAI API
Retrying...
APIConnectionError: Connection error.
at OpenAI.makeRequest (F:\twitch bot\Twitch-Streamer-GPT-main\node_modules\openai\core.js:292:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.answerToMessage (F:\twitch bot\Twitch-Streamer-GPT-main\modules\openaiLib.js:165:22) {
status: undefined,
headers: undefined,
error: undefined,
code: undefined,
param: undefined,
type: undefined,
cause: TypeError [ERR_INVALID_PROTOCOL]: Protocol "https:" not supported. Expected "http:"
at new ClientRequest (node:_http_client:183:11)
at request (node:https:379:10)
at F:\twitch bot\Twitch-Streamer-GPT-main\node_modules\node-fetch\lib\index.js:1478:15
at new Promise (
Bonjour, ça fait 3h que je suis sur l'installation et j'ai rencontré quelques soucis, mais ce dernier me pose une sacré colle
Dans un premier temps, j'ai ça dans la fenêtre TwitchBot
No history file found Bot started and listening to channel Henbrobal Twitch bot listening at http://localhost:3048 The model gpt-3.5-turbo is not available. NotFoundError: 404 Unknown request URL: GET /V2/models/gpt-3.5-turbo. Please check the URL for typos, or see the docs at https://platform.openai.com/docs/api-reference/. at APIError.generate (C:\Twitch-Streamer-GPT\node_modules\openai\error.js:53:20) at OpenAI.makeStatusError (C:\Twitch-Streamer-GPT\node_modules\openai\core.js:263:33) at OpenAI.makeRequest (C:\Twitch-Streamer-GPT\node_modules\openai\core.js:306:30) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async main (C:\Twitch-Streamer-GPT\twitchBot.js:240:9) { status: 404, headers: { 'alt-svc': 'h3=":443"; ma=86400', 'cf-cache-status': 'DYNAMIC', 'cf-ray': '86b554722fb89e61-CDG', connection: 'keep-alive', 'content-length': '271', 'content-type': 'application/octet-stream', date: 'Thu, 28 Mar 2024 05:48:12 GMT', server: 'cloudflare', 'set-cookie': '__cf_bm=zZt.lFgyPvXdZ34zMiIOTDrM_ultKq9UmlKLt2KxrEI-1711604892-1.0.1.1-X21dpjMjJ6QspUiow55GSZ1egkB2i18D1WI95ZnxSwMGQXlhu1Gro1w6HZP4jdS2FFm7KChWEo8UYnNwM0CmQg; path=/; expires=Thu, 28-Mar-24 06:18:12 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=CCtZUiYL4LxP7LYpMSB85NIBzy_YZs.ui5ubVLqgHvs-1711604892660-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None', 'strict-transport-security': 'max-age=15724800; includeSubDomains' }, error: { type: 'invalid_request_error', code: 'unknown_url', message: 'Unknown request URL: GET /V2/models/gpt-3.5-turbo. Please check the URL for typos, or see the docs at https://platform.openai.com/docs/api-reference/.', param: null }, code: 'unknown_url', param: null, type: 'invalid_request_error'
Ensuite j'ai ça du côté du Voice Recorder, le fameux Code1, que je n'arrive pas a trouver la solution.
No history file found Wake word loaded Using microphone device: Microphone (NVIDIA Broadcast) | Wrong device? Run
npm run choose-mic
to select the correct input. Please turn on microphone. Press any key to start 5 seconds of silence for calibration... Calibrating... Calibration completed. SILENCE_THRESHOLD set to 3.1176141535194173 Start listening Wake word detected, start recording ! Playing from C:\Twitch-Streamer-GPT\wake_word_answer: 2.mp3 Audio player exited with code 1 Error details: C:\Twitch-Streamer-GPT\audioPlayer.js:93 throw error; ^Error: spawn UNKNOWN at ChildProcess.spawn (node:internal/child_process:421:11) at spawn (node:child_process:761:9) at createFFmpeg (C:\Twitch-Streamer-GPT\audioPlayer.js:80:18) at Object. (C:\Twitch-Streamer-GPT\audioPlayer.js:132:16)
at Module._compile (node:internal/modules/cjs/loader:1369:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
at Module.load (node:internal/modules/cjs/loader:1206:32)
at Module._load (node:internal/modules/cjs/loader:1022:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49 {
errno: -4094,
code: 'UNKNOWN',
syscall: 'spawn'
}
Node.js v20.12.0
An unhandled rejection occurred! Reason: Error: Audio player exited with code 1. Details: C:\Twitch-Streamer-GPT\audioPlayer.js:93 throw error; ^
Error: spawn UNKNOWN at ChildProcess.spawn (node:internal/child_process:421:11) at spawn (node:child_process:761:9) at createFFmpeg (C:\Twitch-Streamer-GPT\audioPlayer.js:80:18) at Object. (C:\Twitch-Streamer-GPT\audioPlayer.js:132:16)
at Module._compile (node:internal/modules/cjs/loader:1369:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
at Module.load (node:internal/modules/cjs/loader:1206:32)
at Module._load (node:internal/modules/cjs/loader:1022:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49 {
errno: -4094,
code: 'UNKNOWN',
syscall: 'spawn'
}
Node.js v20.12.0
Promise: Promise {