From dc04ca93060443a3ce6263a476f4dafc66afc6b3 Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Sat, 28 Oct 2023 07:21:00 +0200 Subject: Add arkose_token to OpenaiChat --- g4f/Provider/npm/node_modules/undici/lib/llhttp/utils.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 g4f/Provider/npm/node_modules/undici/lib/llhttp/utils.js (limited to 'g4f/Provider/npm/node_modules/undici/lib/llhttp/utils.js') diff --git a/g4f/Provider/npm/node_modules/undici/lib/llhttp/utils.js b/g4f/Provider/npm/node_modules/undici/lib/llhttp/utils.js new file mode 100644 index 00000000..8a32e564 --- /dev/null +++ b/g4f/Provider/npm/node_modules/undici/lib/llhttp/utils.js @@ -0,0 +1,15 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.enumToMap = void 0; +function enumToMap(obj) { + const res = {}; + Object.keys(obj).forEach((key) => { + const value = obj[key]; + if (typeof value === 'number') { + res[key] = value; + } + }); + return res; +} +exports.enumToMap = enumToMap; +//# sourceMappingURL=utils.js.map \ No newline at end of file -- cgit v1.2.3