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 --- .../npm/node_modules/undici/lib/mock/mock-errors.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 g4f/Provider/npm/node_modules/undici/lib/mock/mock-errors.js (limited to 'g4f/Provider/npm/node_modules/undici/lib/mock/mock-errors.js') diff --git a/g4f/Provider/npm/node_modules/undici/lib/mock/mock-errors.js b/g4f/Provider/npm/node_modules/undici/lib/mock/mock-errors.js new file mode 100644 index 00000000..5442c0e8 --- /dev/null +++ b/g4f/Provider/npm/node_modules/undici/lib/mock/mock-errors.js @@ -0,0 +1,17 @@ +'use strict' + +const { UndiciError } = require('../core/errors') + +class MockNotMatchedError extends UndiciError { + constructor (message) { + super(message) + Error.captureStackTrace(this, MockNotMatchedError) + this.name = 'MockNotMatchedError' + this.message = message || 'The request does not match any registered mock dispatches' + this.code = 'UND_MOCK_ERR_MOCK_NOT_MATCHED' + } +} + +module.exports = { + MockNotMatchedError +} -- cgit v1.2.3