From cadc507fad2fee59b23d1d8e73c472c077f468fc Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Sat, 18 Nov 2023 04:38:31 +0100 Subject: Add AiChatOnline, ChatgptDemoAi, ChatgptNext Providers Add OnlineGpt and TalkAi Provider Add get_random_string and get_random_hex helper Remove funcaptcha package --- .../node_modules/undici/lib/websocket/constants.js | 51 ---------------------- 1 file changed, 51 deletions(-) delete mode 100644 g4f/Provider/npm/node_modules/undici/lib/websocket/constants.js (limited to 'g4f/Provider/npm/node_modules/undici/lib/websocket/constants.js') diff --git a/g4f/Provider/npm/node_modules/undici/lib/websocket/constants.js b/g4f/Provider/npm/node_modules/undici/lib/websocket/constants.js deleted file mode 100644 index 406b8e3e..00000000 --- a/g4f/Provider/npm/node_modules/undici/lib/websocket/constants.js +++ /dev/null @@ -1,51 +0,0 @@ -'use strict' - -// This is a Globally Unique Identifier unique used -// to validate that the endpoint accepts websocket -// connections. -// See https://www.rfc-editor.org/rfc/rfc6455.html#section-1.3 -const uid = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11' - -/** @type {PropertyDescriptor} */ -const staticPropertyDescriptors = { - enumerable: true, - writable: false, - configurable: false -} - -const states = { - CONNECTING: 0, - OPEN: 1, - CLOSING: 2, - CLOSED: 3 -} - -const opcodes = { - CONTINUATION: 0x0, - TEXT: 0x1, - BINARY: 0x2, - CLOSE: 0x8, - PING: 0x9, - PONG: 0xA -} - -const maxUnsigned16Bit = 2 ** 16 - 1 // 65535 - -const parserStates = { - INFO: 0, - PAYLOADLENGTH_16: 2, - PAYLOADLENGTH_64: 3, - READ_DATA: 4 -} - -const emptyBuffer = Buffer.allocUnsafe(0) - -module.exports = { - uid, - staticPropertyDescriptors, - states, - opcodes, - maxUnsigned16Bit, - parserStates, - emptyBuffer -} -- cgit v1.2.3