2037 lines
91 KiB
React
2037 lines
91 KiB
React
/* Metro module 970; source: unknown; dependencies: [5, 77, 65, 966, 971, 848, 968, 874, 973, 849, 877, 857] */
|
|
function _fun10191(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#10191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1097:6, offset: 0x00d80c7d, size: 161 bytes, params: 8, frame: 18
|
|
let env0_0 = require;
|
|
const instrumentMethod = function(a0, a1, a2, a3) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
var env0_2 = a2;
|
|
var env0_3 = a3;
|
|
return _fun10195();
|
|
};
|
|
const createDeepProxy = function(a0) {
|
|
var value = undefined;
|
|
var value2 = '';
|
|
var env0_0 = arguments.length > 1 ? value === arguments[1] ? value2 : arguments[1] : value2;
|
|
var env0_1 = arguments.length > 2 ? arguments[2] : value;
|
|
var Proxy = global.Proxy;
|
|
value = Object.create(Proxy.prototype, {constructor: {value: Proxy}});
|
|
var value4 = new Proxy(a0, {get: _fun10210});
|
|
return value4 instanceof Object ? value4 : value;
|
|
};
|
|
let env0_2 = require(5) /* metro dependency 5 */;
|
|
let env0_3 = require(77) /* metro dependency 77 */;
|
|
const env0_4 = require(65) /* metro dependency 65 */;
|
|
const Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
const Symbol = global.Symbol;
|
|
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
|
exports.instrumentOpenAiClient = instrumentOpenAiClient;
|
|
}
|
|
|
|
function extractRequestAttributes(a0, a1) { // fn#10192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1097:64, offset: 0x00d80d1e, size: 451 bytes, params: 3, frame: 24
|
|
var r12;
|
|
var r11;
|
|
var r4;
|
|
const GEN_AI_REQUEST_MODEL_ATTRIBUTE = (require(966) /* metro dependency 966 */).GEN_AI_REQUEST_MODEL_ATTRIBUTE;
|
|
var property;
|
|
var Array;
|
|
var object;
|
|
var Object;
|
|
var assign;
|
|
var value7;
|
|
var value;
|
|
const binding = env0_3;
|
|
const value2 = undefined;
|
|
const GEN_AI_SYSTEM_ATTRIBUTE = (require(966) /* metro dependency 966 */).GEN_AI_SYSTEM_ATTRIBUTE;
|
|
const value3 = binding({}, GEN_AI_SYSTEM_ATTRIBUTE, 'openai');
|
|
const GEN_AI_OPERATION_NAME_ATTRIBUTE = (require(966) /* metro dependency 966 */).GEN_AI_OPERATION_NAME_ATTRIBUTE;
|
|
const moduleValue = require(971) /* metro dependency 971 */;
|
|
const getOperationName = moduleValue.getOperationName;
|
|
const value4 = binding(value3, GEN_AI_OPERATION_NAME_ATTRIBUTE, Reflect.apply(getOperationName, moduleValue, [a1]));
|
|
const SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = (require(848) /* metro dependency 848 */).SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;
|
|
const value5 = binding(value4, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, 'auto.ai.openai');
|
|
if (a0.length > 0) {
|
|
if (typeof a0[0] !== 'object') {
|
|
value5[GEN_AI_REQUEST_MODEL_ATTRIBUTE] = 'unknown';
|
|
} else if (a0[0] !== null) {
|
|
property = a0[0];
|
|
Array = global.Array;
|
|
r12 = Array.isArray(property.tools) ? property.tools : [];
|
|
if (property.web_search_options) {
|
|
if (typeof property.web_search_options === 'object') {
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
object = {type: 'web_search_options'};
|
|
object = [Reflect.apply(assign, Object, [object, property.web_search_options])];
|
|
r11 = object;
|
|
} else {
|
|
r11 = [];
|
|
}
|
|
} else {
|
|
r11 = [];
|
|
}
|
|
value7 = [].concat(env0_4(r12), r11);
|
|
r4 = value7.length > 0 ? global.JSON.stringify(value7) : value2;
|
|
if (r4) {
|
|
value5[(require(966) /* metro dependency 966 */).GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE] = r4;
|
|
}
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
value = moduleValue;
|
|
Reflect.apply(assign, Object, [value5, value.extractRequestParameters(property)]);
|
|
} else {
|
|
value5[GEN_AI_REQUEST_MODEL_ATTRIBUTE] = 'unknown';
|
|
}
|
|
} else {
|
|
value5[GEN_AI_REQUEST_MODEL_ATTRIBUTE] = 'unknown';
|
|
}
|
|
return value5;
|
|
}
|
|
|
|
function addRequestAttributes(a0, a1) { // fn#10193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1097:802, offset: 0x00d80ee1, size: 190 bytes, params: 3, frame: 18
|
|
const r2 = 'input' in a1 ? a1.input : 'messages' in a1 ? a1.messages : undefined;
|
|
const Array = global.Array;
|
|
const isArray = Array.isArray(r2);
|
|
const value2 = undefined;
|
|
const length = isArray ? r2.length : value2;
|
|
if (r2) {
|
|
if (length !== 0) {
|
|
a0.setAttribute((require(966) /* metro dependency 966 */).GEN_AI_REQUEST_MESSAGES_ATTRIBUTE,
|
|
(require(968) /* metro dependency 968 */).getTruncatedJsonString(r2));
|
|
if (length) {
|
|
a0.setAttribute((require(966) /* metro dependency 966 */).GEN_AI_REQUEST_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,
|
|
|
|
length);
|
|
}
|
|
}
|
|
}
|
|
return value2;
|
|
}
|
|
|
|
function instrumentMethod(a0, a1, a2, a3) { // fn#10194, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1097:1124, offset: 0x00d80f9f, size: 43 bytes, params: 5, frame: 9
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_2 = a2;
|
|
const env0_3 = a3;
|
|
return _fun10195();
|
|
}
|
|
|
|
function createDeepProxy(a0) { // fn#10209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1097:3130, offset: 0x00d815f8, size: 115 bytes, params: 2, frame: 16
|
|
let value = undefined;
|
|
const value2 = '';
|
|
const env0_0 = arguments.length > 1 ? value === arguments[1] ? value2 : arguments[1] : value2;
|
|
const env0_1 = arguments.length > 2 ? arguments[2] : value;
|
|
const Proxy = global.Proxy;
|
|
const object2 = {get: get_10210};
|
|
value = Object.create(Proxy.prototype, {constructor: {value: Proxy}});
|
|
const proxy = new Proxy(a0, object2);
|
|
return proxy instanceof Object ? proxy : value;
|
|
}
|
|
|
|
function _fun10195() { // fn#10195, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1097:1166, offset: 0x00d80fca, size: 32 bytes, params: 1, frame: 12
|
|
const env0_0 = env1_2(_fun10197);
|
|
return instrumentedMethod;
|
|
}
|
|
|
|
function createDeepProxyGet(a0, a1) { // fn#10210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1097:3287, owner: createDeepProxy.get, offset: 0x00d8166b, size: 186 bytes, params: 3, frame: 22
|
|
var r0;
|
|
var moduleValue2;
|
|
const property = a0[a1];
|
|
const value = environment.__proto__;
|
|
const moduleValue = require(971) /* metro dependency 971 */;
|
|
const buildMethodPath = moduleValue.buildMethodPath;
|
|
const binding = env0_0;
|
|
const String = global.String;
|
|
const methodPath = Reflect.apply(buildMethodPath, moduleValue, [binding, String(a1)]);
|
|
const value3 = typeof property;
|
|
const value4 = value3 === 'function';
|
|
if (value4) {
|
|
moduleValue2 = moduleValue;
|
|
r0 = moduleValue2.shouldInstrument(methodPath) ? instrumentMethod(property, methodPath, a0,
|
|
env0_1) : value4 ? property.bind(a0) : property && (value3 !== 'object' ? property : createDeepProxy(property,
|
|
|
|
methodPath, env0_1));
|
|
} else {
|
|
r0 = value4 ? property.bind(a0) : property && (value3 !== 'object' ? property : createDeepProxy(property,
|
|
methodPath, env0_1));
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function* _fun10197() { // fn#10197, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1097:1186, offset: 0x00d80ff3, size: 447 bytes, params: 1, frame: 29
|
|
var environment;
|
|
var r3;
|
|
var r17;
|
|
var r1;
|
|
var value6;
|
|
var value9;
|
|
var stream;
|
|
var binding2;
|
|
var startSpan;
|
|
var object2;
|
|
var HermesInternal;
|
|
var concat;
|
|
var value12;
|
|
var getSpanOperation;
|
|
var binding3;
|
|
var startSpanManual;
|
|
var value13;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = arguments.length;
|
|
const Array = global.Array;
|
|
const array = new Array(value);
|
|
const value5 = 0;
|
|
if (value5 < value) {
|
|
r3 = value5;
|
|
reducibleLoop2: while (true) {
|
|
array[r3] = arguments[r3];
|
|
value6 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
if (value6 < value) {
|
|
r3 = value6;
|
|
continue reducibleLoop2;
|
|
}
|
|
break reducibleLoop2;
|
|
}
|
|
}
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
let binding = env3_5;
|
|
const value8 = binding(array, dependencyMap);
|
|
const GEN_AI_REQUEST_MODEL_ATTRIBUTE = env3_0(env3_1[3]).GEN_AI_REQUEST_MODEL_ATTRIBUTE;
|
|
let property = value8[GEN_AI_REQUEST_MODEL_ATTRIBUTE];
|
|
reducibleJoin5: while (true) {
|
|
if (property) {
|
|
r17 = property;
|
|
break reducibleJoin5;
|
|
}
|
|
value9 = 'unknown';
|
|
r17 = value9;
|
|
break reducibleJoin5;
|
|
}
|
|
const operationName = env3_0(env3_1[4]).getOperationName(dependencyMap);
|
|
property = array[value5];
|
|
reducibleJoin10: while (true) {
|
|
reducibleJoin8: while (true) {
|
|
if (property) {
|
|
if (typeof property !== 'object') {
|
|
break reducibleJoin8;
|
|
}
|
|
stream = property.stream;
|
|
if (stream === true) {
|
|
binding = env3_0;
|
|
binding3 = env3_1;
|
|
value = binding(binding3[7]);
|
|
startSpanManual = value.startSpanManual;
|
|
object2 = {};
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
object2.name = '' + operationName + ' ' + r17 + ' stream-response';
|
|
value13 = binding(binding3[4]);
|
|
getSpanOperation = value13.getSpanOperation;
|
|
object2.op = Reflect.apply(getSpanOperation, value13, [dependencyMap]);
|
|
object2.attributes = value8;
|
|
value = Reflect.apply(startSpanManual, value, [object2, _fun10198()]);
|
|
r1 = value;
|
|
break reducibleJoin10;
|
|
}
|
|
break reducibleJoin8;
|
|
}
|
|
break reducibleJoin8;
|
|
}
|
|
binding = env3_0;
|
|
binding2 = env3_1;
|
|
value = binding(binding2[7]);
|
|
startSpan = value.startSpan;
|
|
object2 = {};
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
object2.name = '' + operationName + ' ' + r17;
|
|
value12 = binding(binding2[4]);
|
|
getSpanOperation = value12.getSpanOperation;
|
|
object2.op = Reflect.apply(getSpanOperation, value12, [dependencyMap]);
|
|
object2.attributes = value8;
|
|
value = Reflect.apply(startSpan, value, [object2, _fun10202()]);
|
|
r1 = value;
|
|
break reducibleJoin10;
|
|
}
|
|
return r1;
|
|
}
|
|
|
|
function _fun10198() { // fn#10198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1097:1545, offset: 0x00d811b2, size: 32 bytes, params: 1, frame: 12
|
|
const env0_0 = env4_2(_fun10200);
|
|
return _fun10201;
|
|
}
|
|
|
|
function _fun10202() { // fn#10202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1097:2061, offset: 0x00d81317, size: 32 bytes, params: 1, frame: 12
|
|
const env0_0 = env4_2(_fun10204);
|
|
return _fun10207;
|
|
}
|
|
|
|
function* _fun10200(a0) { // fn#10200, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1097:1565, offset: 0x00d811db, size: 316 bytes, params: 2, frame: 21
|
|
var r1;
|
|
var binding;
|
|
var recordInputs;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var binding2;
|
|
var apply;
|
|
var binding3;
|
|
var value6;
|
|
var binding4;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var binding5;
|
|
var property;
|
|
var value11;
|
|
var instrumentStream;
|
|
var recordOutputs;
|
|
var value12;
|
|
var value13;
|
|
var error;
|
|
var setStatus;
|
|
var value14;
|
|
var binding6;
|
|
var SPAN_STATUS_ERROR;
|
|
var value15;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
try {
|
|
binding = env5_3;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
recordInputs = binding.recordInputs;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
if (recordInputs) {
|
|
value3 = environment.__proto__.__proto__;
|
|
try {
|
|
binding = env2_1;
|
|
r1 = binding;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
if (r1) {
|
|
value4 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
try {
|
|
binding = env6_6;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
value5 = environment.__proto__.__proto__;
|
|
try {
|
|
binding2 = env2_1;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding(a0, binding2);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env5_0;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
apply = binding.apply;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding3 = env5_2;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
value6 = environment.__proto__.__proto__;
|
|
try {
|
|
binding4 = env2_0;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value7 = Reflect.apply(apply, binding, [binding3, binding4]);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
yield value7;
|
|
try {
|
|
value8 = undefined;
|
|
value9 = false;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
if (value9) {
|
|
return value8;
|
|
}
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
try {
|
|
binding = env6_0;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding5 = env6_1;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding5[8];
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value11 = binding(property);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
instrumentStream = value11.instrumentStream;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env5_3;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
recordOutputs = binding.recordOutputs;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value12 = recordOutputs != null;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value13 = Reflect.apply(instrumentStream, value11, [value8, a0, value12 && recordOutputs]);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
return value13;
|
|
}
|
|
try {
|
|
binding = env5_0;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
apply = binding.apply;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding3 = env5_2;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
value6 = environment.__proto__.__proto__;
|
|
try {
|
|
binding4 = env2_0;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value7 = Reflect.apply(apply, binding, [binding3, binding4]);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
yield value7;
|
|
try {
|
|
value8 = undefined;
|
|
value9 = false;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
if (value9) {
|
|
return value8;
|
|
}
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
try {
|
|
binding = env6_0;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding5 = env6_1;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding5[8];
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value11 = binding(property);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
instrumentStream = value11.instrumentStream;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env5_3;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
recordOutputs = binding.recordOutputs;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value12 = recordOutputs != null;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value13 = Reflect.apply(instrumentStream, value11, [value8, a0, value12 && recordOutputs]);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
} else {
|
|
if (recordInputs) {
|
|
value4 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
try {
|
|
binding = env6_6;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
value5 = environment.__proto__.__proto__;
|
|
try {
|
|
binding2 = env2_1;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding(a0, binding2);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env5_0;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
apply = binding.apply;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding3 = env5_2;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
value6 = environment.__proto__.__proto__;
|
|
try {
|
|
binding4 = env2_0;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value7 = Reflect.apply(apply, binding, [binding3, binding4]);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
yield value7;
|
|
try {
|
|
value8 = undefined;
|
|
value9 = false;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
if (value9) {
|
|
return value8;
|
|
}
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
try {
|
|
binding = env6_0;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding5 = env6_1;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding5[8];
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value11 = binding(property);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
instrumentStream = value11.instrumentStream;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env5_3;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
recordOutputs = binding.recordOutputs;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value12 = recordOutputs != null;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value13 = Reflect.apply(instrumentStream, value11, [value8, a0, value12 && recordOutputs]);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
return value13;
|
|
}
|
|
try {
|
|
binding = env5_0;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
apply = binding.apply;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding3 = env5_2;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding4 = env2_0;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value7 = Reflect.apply(apply, binding, [binding3, binding4]);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
yield value7;
|
|
try {
|
|
value8 = undefined;
|
|
value9 = false;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
if (value9) {
|
|
return value8;
|
|
}
|
|
try {
|
|
binding = env6_0;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding5 = env6_1;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding5[8];
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value11 = binding(property);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
instrumentStream = value11.instrumentStream;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env5_3;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
recordOutputs = binding.recordOutputs;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value12 = recordOutputs != null;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value13 = Reflect.apply(instrumentStream, value11, [value8, a0, value12 && recordOutputs]);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
binding6 = env6_1;
|
|
SPAN_STATUS_ERROR = binding(binding6[9]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding6[10]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai.stream',
|
|
data: {function: env5_1}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
}
|
|
return value13;
|
|
}
|
|
|
|
function* _fun10204(a0) { // fn#10204, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1097:2081, offset: 0x00d81340, size: 221 bytes, params: 2, frame: 18
|
|
var environment;
|
|
var r1;
|
|
var binding;
|
|
var recordInputs;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var binding2;
|
|
var apply;
|
|
var binding3;
|
|
var value6;
|
|
var binding4;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var recordOutputs;
|
|
var closure;
|
|
var error;
|
|
var value10;
|
|
var value11;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
try {
|
|
binding = env5_3;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
recordInputs = binding.recordInputs;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
if (recordInputs) {
|
|
value3 = environment.__proto__.__proto__;
|
|
try {
|
|
binding = env2_1;
|
|
r1 = binding;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
if (r1) {
|
|
value4 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
try {
|
|
binding = env6_6;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
value5 = environment.__proto__.__proto__;
|
|
try {
|
|
binding2 = env2_1;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
binding(a0, binding2);
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env5_0;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
apply = binding.apply;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
binding3 = env5_2;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
value6 = environment.__proto__.__proto__;
|
|
try {
|
|
binding4 = env2_0;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
value7 = Reflect.apply(apply, binding, [binding3, binding4]);
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
yield value7;
|
|
try {
|
|
value8 = undefined;
|
|
value9 = false;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
if (value9) {
|
|
return value8;
|
|
}
|
|
try {
|
|
binding = env5_3;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
recordOutputs = binding.recordOutputs;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
closure = addResponseAttributes_10205;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
closure(a0, value8, recordOutputs);
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
return value8;
|
|
}
|
|
try {
|
|
binding = env5_0;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
apply = binding.apply;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
binding3 = env5_2;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
value6 = environment.__proto__.__proto__;
|
|
try {
|
|
binding4 = env2_0;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
value7 = Reflect.apply(apply, binding, [binding3, binding4]);
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
yield value7;
|
|
try {
|
|
value8 = undefined;
|
|
value9 = false;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
if (value9) {
|
|
return value8;
|
|
}
|
|
try {
|
|
binding = env5_3;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
recordOutputs = binding.recordOutputs;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
closure = addResponseAttributes_10205;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
closure(a0, value8, recordOutputs);
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
} else {
|
|
if (recordInputs) {
|
|
value4 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
try {
|
|
binding = env6_6;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
value5 = environment.__proto__.__proto__;
|
|
try {
|
|
binding2 = env2_1;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
binding(a0, binding2);
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env5_0;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
apply = binding.apply;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
binding3 = env5_2;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
value6 = environment.__proto__.__proto__;
|
|
try {
|
|
binding4 = env2_0;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
value7 = Reflect.apply(apply, binding, [binding3, binding4]);
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
yield value7;
|
|
try {
|
|
value8 = undefined;
|
|
value9 = false;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
if (value9) {
|
|
return value8;
|
|
}
|
|
try {
|
|
binding = env5_3;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
recordOutputs = binding.recordOutputs;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
closure = addResponseAttributes_10205;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
closure(a0, value8, recordOutputs);
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
return value8;
|
|
}
|
|
try {
|
|
binding = env5_0;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
apply = binding.apply;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
binding3 = env5_2;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
binding4 = env2_0;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
value7 = Reflect.apply(apply, binding, [binding3, binding4]);
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
yield value7;
|
|
try {
|
|
value8 = undefined;
|
|
value9 = false;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
if (value9) {
|
|
return value8;
|
|
}
|
|
try {
|
|
binding = env5_3;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
recordOutputs = binding.recordOutputs;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
closure = addResponseAttributes_10205;
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
try {
|
|
closure(a0, value8, recordOutputs);
|
|
} catch (error) {
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env6_0;
|
|
value11 = binding(env6_1[10]);
|
|
value11.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.openai',
|
|
data: {function: env5_1}}});
|
|
throw error;
|
|
}
|
|
}
|
|
return value8;
|
|
}
|
|
|
|
function addResponseAttributes_10205(a0, a1, a2) { // fn#10205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1097:2175, offset: 0x00d8141d, size: 442 bytes, params: 4, frame: 21
|
|
var environment;
|
|
var value2;
|
|
var binding;
|
|
var isChatCompletionResponse2;
|
|
var value4;
|
|
var isResponsesApiResponse2;
|
|
var value5;
|
|
var value6;
|
|
var setAttributes;
|
|
var GEN_AI_RESPONSE_TEXT_ATTRIBUTE;
|
|
var choices;
|
|
let value = a2;
|
|
if (a1) {
|
|
if (typeof a1 === 'object') {
|
|
value2 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env7_0;
|
|
isChatCompletionResponse2 = binding(env7_1[4]).isChatCompletionResponse(a1);
|
|
binding = env7_0;
|
|
value4 = binding(env7_1[4]);
|
|
if (isChatCompletionResponse2) {
|
|
value4.addChatCompletionAttributes(a0, a1, value);
|
|
if (value) {
|
|
choices = a1.choices;
|
|
if (choices != null) {
|
|
if (choices.length) {
|
|
value = a1.choices.map(function({message}) {
|
|
var r0;
|
|
r0 = message?.content;
|
|
r0 = !r0 ? '' : r0;
|
|
return r0;
|
|
});
|
|
setAttributes = a0.setAttributes;
|
|
binding = env7_3;
|
|
GEN_AI_RESPONSE_TEXT_ATTRIBUTE = env7_0(env7_1[3]).GEN_AI_RESPONSE_TEXT_ATTRIBUTE;
|
|
value = global.JSON.stringify(value);
|
|
Reflect.apply(setAttributes, a0, [binding({}, GEN_AI_RESPONSE_TEXT_ATTRIBUTE, value)]);
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
isResponsesApiResponse2 = value4.isResponsesApiResponse(a1);
|
|
value5 = env7_0(env7_1[4]);
|
|
if (isResponsesApiResponse2) {
|
|
value5.addResponsesApiAttributes(a0, a1, value);
|
|
if (value && a1.output_text) {
|
|
a0.setAttributes(env7_3({}, env7_0(env7_1[3]).GEN_AI_RESPONSE_TEXT_ATTRIBUTE, a1.output_text));
|
|
}
|
|
} else {
|
|
value = value5.isEmbeddingsResponse(a1);
|
|
value6 = env7_0(env7_1[4]);
|
|
if (value) {
|
|
value6.addEmbeddingsAttributes(a0, a1);
|
|
} else if (value6.isConversationResponse(a1)) {
|
|
env7_0(env7_1[4]).addConversationAttributes(a0, a1);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|