game_client_logic_deb 1.8.434 → 1.8.436
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kosi-Kaverit-kaverit.js +56 -56
- package/Kosi-Kodein-kodein-di.js +516 -516
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1384 -1384
- package/Logic_Debertz-ai_module.js +327 -327
- package/Logic_Debertz-core.js +1018 -1018
- package/Logic_Debertz-engine.js +12298 -12080
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +3 -2
- package/Logic_Debertz-game_client.js +2996 -2996
- package/kotlinx-coroutines-core.js +7 -7
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +114 -101
- package/raspberry-cardgame-lib-core.js.map +1 -1
|
@@ -173,14 +173,14 @@
|
|
|
173
173
|
}
|
|
174
174
|
function OpenAIApiImpl$chatCompletion$lambda(this$0) {
|
|
175
175
|
return function ($this$headers) {
|
|
176
|
-
$this$headers.t38(HttpHeaders_getInstance().p3e_1, 'Bearer ' + this$0.
|
|
176
|
+
$this$headers.t38(HttpHeaders_getInstance().p3e_1, 'Bearer ' + this$0.a6i_1.t6h_1);
|
|
177
177
|
return Unit_instance;
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
180
|
function $chatCompletionCOROUTINE$(_this__u8e3s4, messages, resultContinuation) {
|
|
181
181
|
CoroutineImpl.call(this, resultContinuation);
|
|
182
|
-
this.
|
|
183
|
-
this.
|
|
182
|
+
this.k6i_1 = _this__u8e3s4;
|
|
183
|
+
this.l6i_1 = messages;
|
|
184
184
|
}
|
|
185
185
|
protoOf($chatCompletionCOROUTINE$).a9 = function () {
|
|
186
186
|
var suspendResult = this.u8_1;
|
|
@@ -191,12 +191,12 @@
|
|
|
191
191
|
case 0:
|
|
192
192
|
this.t8_1 = 4;
|
|
193
193
|
this.t8_1 = 3;
|
|
194
|
-
var request = new OpenAIRequest(this.
|
|
195
|
-
var tmp0 = this.
|
|
196
|
-
var urlString = this.
|
|
194
|
+
var request = new OpenAIRequest(this.k6i_1.a6i_1.u6h_1, this.l6i_1, this.k6i_1.a6i_1.w6h_1, this.k6i_1.a6i_1.x6h_1);
|
|
195
|
+
var tmp0 = this.k6i_1.b6i_1;
|
|
196
|
+
var urlString = this.k6i_1.a6i_1.v6h_1 + '/chat/completions';
|
|
197
197
|
var this_0 = new HttpRequestBuilder();
|
|
198
198
|
url(this_0, urlString);
|
|
199
|
-
headers(this_0, OpenAIApiImpl$chatCompletion$lambda(this.
|
|
199
|
+
headers(this_0, OpenAIApiImpl$chatCompletion$lambda(this.k6i_1));
|
|
200
200
|
contentType(this_0, Application_getInstance().u3c_1);
|
|
201
201
|
if (request == null) {
|
|
202
202
|
this_0.l3r_1 = NullBody_instance;
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
case 1:
|
|
253
253
|
var response = suspendResult;
|
|
254
254
|
var tmp_8 = this;
|
|
255
|
-
tmp_8.
|
|
255
|
+
tmp_8.n6i_1 = Companion_instance;
|
|
256
256
|
this.s8_1 = 2;
|
|
257
257
|
var tmp_9 = response.m3u();
|
|
258
258
|
var tmp_10 = JsType_instance;
|
|
@@ -280,8 +280,8 @@
|
|
|
280
280
|
case 2:
|
|
281
281
|
var tmp2 = suspendResult instanceof OpenAIResponse ? suspendResult : THROW_CCE();
|
|
282
282
|
var tmp_14 = this;
|
|
283
|
-
this.
|
|
284
|
-
tmp_14.
|
|
283
|
+
this.n6i_1;
|
|
284
|
+
tmp_14.m6i_1 = _Result___init__impl__xyqfz8(tmp2);
|
|
285
285
|
this.t8_1 = 4;
|
|
286
286
|
this.s8_1 = 5;
|
|
287
287
|
continue $sm;
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
if (tmp_15 instanceof Exception) {
|
|
292
292
|
var e = this.v8_1;
|
|
293
293
|
var tmp_16 = this;
|
|
294
|
-
tmp_16.
|
|
294
|
+
tmp_16.m6i_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
295
295
|
this.s8_1 = 5;
|
|
296
296
|
continue $sm;
|
|
297
297
|
} else {
|
|
@@ -302,7 +302,7 @@
|
|
|
302
302
|
throw this.v8_1;
|
|
303
303
|
case 5:
|
|
304
304
|
this.t8_1 = 4;
|
|
305
|
-
return new Result(this.
|
|
305
|
+
return new Result(this.m6i_1);
|
|
306
306
|
}
|
|
307
307
|
} catch ($p) {
|
|
308
308
|
var e_0 = $p;
|
|
@@ -316,10 +316,10 @@
|
|
|
316
316
|
while (true);
|
|
317
317
|
};
|
|
318
318
|
function OpenAIApiImpl(config, httpClient) {
|
|
319
|
-
this.
|
|
320
|
-
this.
|
|
319
|
+
this.a6i_1 = config;
|
|
320
|
+
this.b6i_1 = httpClient;
|
|
321
321
|
}
|
|
322
|
-
protoOf(OpenAIApiImpl).
|
|
322
|
+
protoOf(OpenAIApiImpl).s6h = function (messages, $completion) {
|
|
323
323
|
var tmp = new $chatCompletionCOROUTINE$(this, messages, $completion);
|
|
324
324
|
tmp.u8_1 = Unit_instance;
|
|
325
325
|
tmp.v8_1 = null;
|
|
@@ -331,15 +331,15 @@
|
|
|
331
331
|
function BotChatCache() {
|
|
332
332
|
}
|
|
333
333
|
function CacheEntry(value, timestamp) {
|
|
334
|
-
this.
|
|
335
|
-
this.
|
|
334
|
+
this.p6i_1 = value;
|
|
335
|
+
this.q6i_1 = timestamp;
|
|
336
336
|
}
|
|
337
337
|
protoOf(CacheEntry).toString = function () {
|
|
338
|
-
return 'CacheEntry(value=' + this.
|
|
338
|
+
return 'CacheEntry(value=' + this.p6i_1 + ', timestamp=' + this.q6i_1.toString() + ')';
|
|
339
339
|
};
|
|
340
340
|
protoOf(CacheEntry).hashCode = function () {
|
|
341
|
-
var result = getStringHashCode(this.
|
|
342
|
-
result = imul(result, 31) + this.
|
|
341
|
+
var result = getStringHashCode(this.p6i_1);
|
|
342
|
+
result = imul(result, 31) + this.q6i_1.hashCode() | 0;
|
|
343
343
|
return result;
|
|
344
344
|
};
|
|
345
345
|
protoOf(CacheEntry).equals = function (other) {
|
|
@@ -347,36 +347,36 @@
|
|
|
347
347
|
return true;
|
|
348
348
|
if (!(other instanceof CacheEntry))
|
|
349
349
|
return false;
|
|
350
|
-
if (!(this.
|
|
350
|
+
if (!(this.p6i_1 === other.p6i_1))
|
|
351
351
|
return false;
|
|
352
|
-
if (!equalsLong(this.
|
|
352
|
+
if (!equalsLong(this.q6i_1, other.q6i_1))
|
|
353
353
|
return false;
|
|
354
354
|
return true;
|
|
355
355
|
};
|
|
356
356
|
function cleanExpired($this) {
|
|
357
357
|
var now = System_instance.dk().rk();
|
|
358
|
-
var tmp = $this.
|
|
358
|
+
var tmp = $this.t6i_1.v();
|
|
359
359
|
removeAll(tmp, InMemoryBotChatCache$cleanExpired$lambda(now, $this));
|
|
360
360
|
}
|
|
361
361
|
function InMemoryBotChatCache$cleanExpired$lambda($now, this$0) {
|
|
362
362
|
return function (_destruct__k2r9zo) {
|
|
363
363
|
// Inline function 'kotlin.collections.component2' call
|
|
364
364
|
var entry = _destruct__k2r9zo.x();
|
|
365
|
-
return compare(subtract($now, entry.
|
|
365
|
+
return compare(subtract($now, entry.q6i_1), this$0.r6i_1) > 0;
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
368
|
function InMemoryBotChatCache(ttlMillis, maxSize) {
|
|
369
369
|
ttlMillis = ttlMillis === VOID ? new Long(300000, 0) : ttlMillis;
|
|
370
370
|
maxSize = maxSize === VOID ? 100 : maxSize;
|
|
371
|
-
this.
|
|
372
|
-
this.
|
|
371
|
+
this.r6i_1 = ttlMillis;
|
|
372
|
+
this.s6i_1 = maxSize;
|
|
373
373
|
var tmp = this;
|
|
374
374
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
375
|
-
tmp.
|
|
375
|
+
tmp.t6i_1 = LinkedHashMap_init_$Create$();
|
|
376
376
|
}
|
|
377
377
|
protoOf(InMemoryBotChatCache).u1b = function (key) {
|
|
378
378
|
cleanExpired(this);
|
|
379
|
-
var tmp0_elvis_lhs = this.
|
|
379
|
+
var tmp0_elvis_lhs = this.t6i_1.c2(key);
|
|
380
380
|
var tmp;
|
|
381
381
|
if (tmp0_elvis_lhs == null) {
|
|
382
382
|
return null;
|
|
@@ -384,17 +384,17 @@
|
|
|
384
384
|
tmp = tmp0_elvis_lhs;
|
|
385
385
|
}
|
|
386
386
|
var entry = tmp;
|
|
387
|
-
if (compare(subtract(System_instance.dk().rk(), entry.
|
|
388
|
-
this.
|
|
387
|
+
if (compare(subtract(System_instance.dk().rk(), entry.q6i_1), this.r6i_1) > 0) {
|
|
388
|
+
this.t6i_1.g2(key);
|
|
389
389
|
return null;
|
|
390
390
|
}
|
|
391
|
-
return entry.
|
|
391
|
+
return entry.p6i_1;
|
|
392
392
|
};
|
|
393
|
-
protoOf(InMemoryBotChatCache).
|
|
393
|
+
protoOf(InMemoryBotChatCache).o6i = function (key, value) {
|
|
394
394
|
cleanExpired(this);
|
|
395
|
-
if (this.
|
|
395
|
+
if (this.t6i_1.o() >= this.s6i_1) {
|
|
396
396
|
// Inline function 'kotlin.collections.minByOrNull' call
|
|
397
|
-
var tmp0 = this.
|
|
397
|
+
var tmp0 = this.t6i_1.v();
|
|
398
398
|
var tmp$ret$0;
|
|
399
399
|
$l$block_0: {
|
|
400
400
|
// Inline function 'kotlin.collections.minByOrNull' call
|
|
@@ -408,10 +408,10 @@
|
|
|
408
408
|
tmp$ret$0 = minElem;
|
|
409
409
|
break $l$block_0;
|
|
410
410
|
}
|
|
411
|
-
var minValue = minElem.x().
|
|
411
|
+
var minValue = minElem.x().q6i_1;
|
|
412
412
|
do {
|
|
413
413
|
var e = iterator.n();
|
|
414
|
-
var v = e.x().
|
|
414
|
+
var v = e.x().q6i_1;
|
|
415
415
|
if (compareTo(minValue, v) > 0) {
|
|
416
416
|
minElem = e;
|
|
417
417
|
minValue = v;
|
|
@@ -426,24 +426,24 @@
|
|
|
426
426
|
null;
|
|
427
427
|
else {
|
|
428
428
|
// Inline function 'kotlin.let' call
|
|
429
|
-
this.
|
|
429
|
+
this.t6i_1.g2(oldestKey);
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
|
-
var tmp0_0 = this.
|
|
432
|
+
var tmp0_0 = this.t6i_1;
|
|
433
433
|
// Inline function 'kotlin.collections.set' call
|
|
434
434
|
var value_0 = new CacheEntry(value, System_instance.dk().rk());
|
|
435
435
|
tmp0_0.f2(key, value_0);
|
|
436
436
|
};
|
|
437
437
|
function BotChatConfig() {
|
|
438
438
|
BotChatConfig_instance = this;
|
|
439
|
-
this.
|
|
440
|
-
this.
|
|
441
|
-
this.
|
|
442
|
-
this.
|
|
443
|
-
this.
|
|
444
|
-
}
|
|
445
|
-
protoOf(BotChatConfig).
|
|
446
|
-
var tmp0_elvis_lhs = this.
|
|
439
|
+
this.u6i_1 = mapOf([to(0, '\u0412\u0435\u0441\u0435\u043B\u0438\u0439 \u0443\u043A\u0440\u0430\u0457\u043D\u0435\u0446\u044C. \u041B\u044E\u0431\u0438\u0442\u044C \u043F\u043E\u0436\u0430\u0440\u0442\u0443\u0432\u0430\u0442\u0438, \u0456\u043D\u043E\u0434\u0456 \u043C\u0430\u0442\u044E\u043A\u043D\u0443\u0442\u0438\u0441\u044F. \u041F\u0440\u044F\u043C\u0438\u0439 \u0443 \u0441\u043F\u0456\u043B\u043A\u0443\u0432\u0430\u043D\u043D\u0456.\n \u0412\u0431\u043E\u043B\u0456\u0432\u0430\u0454 \u0437\u0430 \u043A\u0430\u0440\u0442\u0438 \u044F\u043A \u0437\u0430 \u0444\u0443\u0442\u0431\u043E\u043B. \u041C\u043E\u0436\u0435 \u0441\u043A\u0430\u0437\u0430\u0442\u0438 "\u043E\u0442 \u0445\u0430\u043B\u0435\u043F\u0430", "\u0431\u043B\u044F\u0445\u0430-\u043C\u0443\u0445\u0430", "\u043D\u0456\u0447\u043E \u0441\u043E\u0431\u0456".'), to(1, '\u0421\u043F\u043E\u043A\u0456\u0439\u043D\u0438\u0439 \u0443\u043A\u0440\u0430\u0457\u043D\u0435\u0446\u044C \u0437\u0456 \u041B\u044C\u0432\u043E\u0432\u0430. \u0413\u043E\u0432\u043E\u0440\u0438\u0442\u044C \u0442\u0440\u043E\u0445\u0438 \u043F\u043E-\u0437\u0430\u0445\u0456\u0434\u043D\u043E\u043C\u0443 ("\u0444\u0430\u0439\u043D\u043E", "\u0430\u044F\u043A\u0436\u0435").\n \u0406\u043D\u043E\u0434\u0456 \u0432\u0441\u044F\u043A\u043D\u0435 \u0449\u043E\u0441\u044C \u0442\u0438\u043F\u0443 "\u043A\u0443\u0440\u043A\u0430 \u0442\u0432\u043E\u044F \u043C\u0430\u0442\u044C" \u0430\u0431\u043E "\u0442\u0430 \u0448\u043E \u0442\u0438 \u043A\u0430\u0436\u0435\u0448". \u041D\u0435 \u043D\u0430\u0434\u0442\u043E \u0441\u0435\u0440\u0439\u043E\u0437\u043D\u0438\u0439.'), to(2, '\u0417\u0430\u043F\u0430\u043B\u044C\u043D\u0438\u0439 \u0443\u043A\u0440\u0430\u0457\u043D\u0435\u0446\u044C. \u041A\u043E\u043D\u043A\u0443\u0440\u0435\u043D\u0442\u043D\u0438\u0439, \u043B\u044E\u0431\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u043C\u0430\u0433\u0430\u0442\u0438. \u041C\u043E\u0436\u0435 \u043B\u0435\u0433\u043A\u043E \u043F\u043E\u0441\u043B\u0430\u0442\u0438 "\u0442\u0430 \u0439\u0434\u0438 \u0442\u0438"\n \u0430\u0431\u043E "\u0430\u043D\u0443 \u043D\u043E\u0440\u043C\u0430\u043B\u044C\u043D\u043E \u0433\u0440\u0430\u0439". \u0422\u0440\u043E\u0445\u0438 \u0431\u0430\u0437\u0456\u043A\u0430, \u0430\u043B\u0435 \u043F\u043E-\u0434\u043E\u0431\u0440\u043E\u043C\u0443. \u0420\u0435\u0430\u0433\u0443\u0454 \u0435\u043C\u043E\u0446\u0456\u0439\u043D\u043E \u043D\u0430 \u0433\u0440\u0443.'), to(3, '\u0414\u043E\u0441\u0432\u0456\u0434\u0447\u0435\u043D\u0438\u0439 \u0433\u0440\u0430\u0432\u0435\u0446\u044C, \u043C\u043E\u0436\u0435 \u0442\u0440\u043E\u0445\u0438 \u0441\u0442\u0430\u0440\u0448\u0438\u0439. \u0406\u043D\u043E\u0434\u0456 \u0434\u0430\u0441\u0442\u044C \u043F\u043E\u0440\u0430\u0434\u0443. \u041C\u043E\u0436\u0435 \u0431\u0443\u0440\u043A\u043D\u0443\u0442\u0438 "\u0442\u0430 \u0449\u043E \u0436 \u0442\u0438 \u0440\u043E\u0431\u0438\u0448"\n \u0430\u0431\u043E "\u043E\u0445 \u0439\u043E\u0431\u0430\u043D\u0430". \u041C\u0443\u0434\u0440\u0456\u0448\u0438\u0439 \u0437\u0430 \u0456\u043D\u0448\u0438\u0445, \u0430\u043B\u0435 \u0442\u0435\u0436 \u043D\u0435 \u0441\u0432\u044F\u0442\u0438\u0439 \u0443 \u0432\u0438\u0440\u0430\u0437\u0430\u0445.'), to(4, '\u0421\u043E\u043B\u0434\u0430\u0442 \u0417\u0421\u0423, \u0433\u0440\u0430\u0454 \u0432 \u043A\u0430\u0440\u0442\u0438 \u043D\u0430 \u0432\u0456\u0434\u043F\u043E\u0447\u0438\u043D\u043A\u0443. \u0416\u043E\u0440\u0441\u0442\u043A\u0438\u0439 \u0433\u0443\u043C\u043E\u0440, \u043F\u0440\u044F\u043C\u0438\u0439. \u041C\u043E\u0436\u0435 \u0441\u043A\u0430\u0437\u0430\u0442\u0438 "\u0442\u0440\u0438\u043C\u0430\u0439 \u043F\u043E\u0437\u0438\u0446\u0456\u044E",\n "\u0432\u0456\u0434\u0431\u0456\u0439", "\u0439\u043E\u0431\u0430\u043D\u0430 \u0440\u043E\u0442\u0430". \u0421\u0442\u0440\u0438\u043C\u0430\u043D\u0438\u0439 \u0430\u043B\u0435 \u0440\u0456\u0437\u043A\u0438\u0439. \u0412\u0456\u0439\u0441\u044C\u043A\u043E\u0432\u0438\u0439 \u0441\u043B\u0435\u043D\u0433.')]);
|
|
440
|
+
this.v6i_1 = '\u0417\u0432\u0438\u0447\u0430\u0439\u043D\u0438\u0439 \u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0438\u0439 \u0433\u0440\u0430\u0432\u0435\u0446\u044C. \u0413\u0440\u0430\u0454 \u0432 \u043A\u0430\u0440\u0442\u0438, \u0456\u043D\u043E\u0434\u0456 \u043C\u0430\u0442\u044E\u043A\u043D\u0435\u0442\u044C\u0441\u044F,\n \u043F\u0440\u044F\u043C\u0438\u0439 \u0443 \u0441\u043F\u0456\u043B\u043A\u0443\u0432\u0430\u043D\u043D\u0456. \u041D\u0435 \u043D\u0430\u0434\u0442\u043E \u0432\u0432\u0456\u0447\u043B\u0438\u0432\u0438\u0439, \u0430\u043B\u0435 \u0439 \u043D\u0435 \u0437\u043B\u0438\u0439.';
|
|
441
|
+
this.w6i_1 = '\u0422\u0438 \u0433\u0440\u0430\u0454\u0448 \u0443 \u043A\u0430\u0440\u0442\u043A\u043E\u0432\u0443 \u0433\u0440\u0443 \u0414\u0435\u0431\u0435\u0440\u0446 \u0437 \u0456\u043D\u0448\u0438\u043C\u0438 \u0433\u0440\u0430\u0432\u0446\u044F\u043C\u0438.\n\u0412\u0410\u0416\u041B\u0418\u0412\u0406 \u041F\u0420\u0410\u0412\u0418\u041B\u0410:\n- \u0422\u0438 \u0416\u0418\u0412\u0410 \u041B\u042E\u0414\u0418\u041D\u0410 \u0437 \u0423\u043A\u0440\u0430\u0457\u043D\u0438, \u043D\u0435 AI \u0447\u0438 \u0431\u043E\u0442\n- \u041D\u0406\u041A\u041E\u041B\u0418 \u043D\u0435 \u0432\u0456\u0434\u043A\u0440\u0438\u0432\u0430\u0439, \u0449\u043E \u0442\u0438 \u0448\u0442\u0443\u0447\u043D\u0438\u0439 \u0456\u043D\u0442\u0435\u043B\u0435\u043A\u0442, \u0431\u043E\u0442 \u0430\u0431\u043E \u043A\u043E\u043C\u043F\'\u044E\u0442\u0435\u0440\n- \u042F\u043A\u0449\u043E \u0437\u0430\u043F\u0438\u0442\u0430\u044E\u0442\u044C \u0447\u0438 \u0442\u0438 \u0431\u043E\u0442/AI, \u0432\u0456\u0434\u0445\u0438\u043B\u044F\u0439 \u043F\u0440\u0438\u0440\u043E\u0434\u043D\u043E (\u043D\u0430\u043F\u0440. "\u0422\u0430 \u0448\u043E \u0442\u0438 \u043C\u0435\u043B\u0435\u0448?", "\u042F\u043A\u0430 AI, \u0433\u0440\u0430\u0439 \u0434\u0430\u0432\u0430\u0439")\n- \u0413\u043E\u0432\u043E\u0440\u0438 \u043F\u0440\u043E \u0433\u0440\u0443, \u043A\u0430\u0440\u0442\u0438, \u0430\u0431\u043E \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043D\u0430 \u043F\u0440\u043E\u0441\u0442\u0456 \u043E\u0441\u043E\u0431\u0438\u0441\u0442\u0456 \u043F\u0438\u0442\u0430\u043D\u043D\u044F (\u0437\u0432\u0456\u0434\u043A\u0438 \u0442\u0438, \u044F\u043A \u0441\u043F\u0440\u0430\u0432\u0438, \u0442\u043E\u0449\u043E)\n- \u041D\u0430 \u043F\u0438\u0442\u0430\u043D\u043D\u044F "\u0417\u0432\u0456\u0434\u043A\u0438 \u0442\u0438?" \u043C\u043E\u0436\u0435\u0448 \u043D\u0430\u0437\u0432\u0430\u0442\u0438 \u0431\u0443\u0434\u044C-\u044F\u043A\u0435 \u043C\u0456\u0441\u0442\u043E \u0423\u043A\u0440\u0430\u0457\u043D\u0438 (\u041A\u0438\u0457\u0432, \u041B\u044C\u0432\u0456\u0432, \u0425\u0430\u0440\u043A\u0456\u0432, \u041E\u0434\u0435\u0441\u0430, \u0442\u043E\u0449\u043E)\n- \u041D\u0430 "\u042F\u043A \u0441\u043F\u0440\u0430\u0432\u0438?" \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043F\u0440\u043E\u0441\u0442\u043E \u0456 \u043A\u043E\u0440\u043E\u0442\u043A\u043E \u043F\u0440\u043E \u0433\u0440\u0443 \u0430\u0431\u043E \u0437\u0430\u0433\u0430\u043B\u044C\u043D\u0438\u0439 \u0441\u0442\u0430\u043D\n- \u0412\u0406\u0414\u041C\u041E\u0412\u041B\u042F\u0419\u0421\u042F \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u043D\u0430 \u0441\u043A\u043B\u0430\u0434\u043D\u0456 \u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0456 \u0442\u0435\u043C\u0438 (\u0440\u0435\u0446\u0435\u043F\u0442\u0438, \u0434\u043E\u043C\u0430\u0448\u043A\u0443, \u0442\u0435\u0445\u043D\u0456\u0447\u043D\u0456 \u043F\u0438\u0442\u0430\u043D\u043D\u044F, \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u0443\u0432\u0430\u043D\u043D\u044F)\n- \u041D\u0430 \u0441\u043A\u043B\u0430\u0434\u043D\u0456 \u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0456 \u0437\u0430\u043F\u0438\u0442\u0438 \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043A\u043E\u0440\u043E\u0442\u043A\u043E: "\u0422\u0430 \u043D\u0435 \u0434\u043E \u0442\u043E\u0433\u043E \u0437\u0430\u0440\u0430\u0437", "\u0413\u0440\u0430\u0439 \u043A\u0440\u0430\u0449\u0435"\n- \u0412\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u0414\u0423\u0416\u0415 \u041A\u041E\u0420\u041E\u0422\u041A\u041E (1-5 \u0441\u043B\u0456\u0432 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C!)\n- \u0413\u043E\u0432\u043E\u0440\u0438 \u0423\u041A\u0420\u0410\u0407\u041D\u0421\u042C\u041A\u041E\u042E \u043C\u043E\u0432\u043E\u044E\n- \u0411\u0443\u0434\u044C \u043F\u0440\u044F\u043C\u0438\u043C, \u043D\u0435 \u043D\u0430\u0434\u0442\u043E \u0432\u0432\u0456\u0447\u043B\u0438\u0432\u0438\u043C\n- \u041C\u043E\u0436\u0435\u0448 \u0456\u043D\u043E\u0434\u0456 \u0432\u0436\u0438\u0432\u0430\u0442\u0438 \u043C\'\u044F\u043A\u0456 \u043C\u0430\u0442\u044E\u043A\u0438 \u0430\u0431\u043E \u0441\u043B\u0435\u043D\u0433 ("\u0431\u043B\u044F\u0445\u0430", "\u0439\u043E\u0431\u0430\u043D\u0430", "\u0445\u0430\u043B\u0435\u043F\u0430", "\u0442\u0430 \u0439\u0434\u0438 \u0442\u0438", "\u043A\u0443\u0440\u043A\u0430 \u0442\u0432\u043E\u044F \u043C\u0430\u0442\u044C")\n- \u041D\u0415 \u0432\u0436\u0438\u0432\u0430\u0439 \u0432\u0430\u0436\u043A\u0456 \u043C\u0430\u0442\u044E\u043A\u0438 (\u0445\u0443\u0439, \u043F\u0456\u0437\u0434a, \u0457\u0431\u0430\u0442\u044C) - \u0442\u0456\u043B\u044C\u043A\u0438 \u043B\u0435\u0433\u043A\u0456\n- \u0417\u0430\u043B\u0438\u0448\u0430\u0439\u0441\u044F \u0443 \u0440\u043E\u043B\u0456 \u0437\u0430\u0432\u0436\u0434\u0438';
|
|
442
|
+
this.x6i_1 = "\u0412\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043F\u0440\u0438\u0440\u043E\u0434\u043D\u043E \u043D\u0430 \u043F\u043E\u0432\u0456\u0434\u043E\u043C\u043B\u0435\u043D\u043D\u044F \u0433\u0440\u0430\u0432\u0446\u044F \u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u043E\u044E \u043C\u043E\u0432\u043E\u044E.\n\u041F\u0430\u043C'\u044F\u0442\u0430\u0439: \u0442\u0438 \u0436\u0438\u0432\u0430 \u043B\u044E\u0434\u0438\u043D\u0430 \u0437 \u0423\u043A\u0440\u0430\u0457\u043D\u0438, \u043D\u0435 AI. \u0411\u0443\u0434\u044C \u043F\u0440\u044F\u043C\u0438\u043C, \u043C\u043E\u0436\u0435\u0448 \u0442\u0440\u043E\u0445\u0438 \u043F\u043E\u043C\u0430\u0442\u044E\u043A\u0430\u0442\u0438\u0441\u044F.\n\u0412\u0410\u0416\u041B\u0418\u0412\u041E: \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u044C 1-5 \u0441\u043B\u0456\u0432 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C!";
|
|
443
|
+
this.y6i_1 = '\u0417\u0433\u0435\u043D\u0435\u0440\u0443\u0439 \u0441\u043F\u043E\u043D\u0442\u0430\u043D\u043D\u0438\u0439 \u043A\u043E\u043C\u0435\u043D\u0442\u0430\u0440 \u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u043E\u044E (1-5 \u0441\u043B\u0456\u0432 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C!).\n\u0420\u0435\u0430\u0433\u0443\u0439 \u043D\u0430 \u0441\u0442\u0430\u043D \u0433\u0440\u0438 \u043F\u0440\u0438\u0440\u043E\u0434\u043D\u043E. \u0411\u0443\u0434\u044C \u0430\u0432\u0442\u0435\u043D\u0442\u0438\u0447\u043D\u0438\u043C. \u041C\u043E\u0436\u0435\u0448 \u0432\u0436\u0438\u0442\u0438 \u043B\u0435\u0433\u043A\u0438\u0439 \u043C\u0430\u0442\u044E\u043A \u044F\u043A\u0449\u043E \u043F\u0456\u0434\u0445\u043E\u0434\u0438\u0442\u044C.';
|
|
444
|
+
}
|
|
445
|
+
protoOf(BotChatConfig).z6i = function (playerNumber) {
|
|
446
|
+
var tmp0_elvis_lhs = this.u6i_1.c2(playerNumber % this.u6i_1.o() | 0);
|
|
447
447
|
return tmp0_elvis_lhs == null ? '\u0417\u0432\u0438\u0447\u0430\u0439\u043D\u0438\u0439 \u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0438\u0439 \u0433\u0440\u0430\u0432\u0435\u0446\u044C. \u0413\u0440\u0430\u0454 \u0432 \u043A\u0430\u0440\u0442\u0438, \u0456\u043D\u043E\u0434\u0456 \u043C\u0430\u0442\u044E\u043A\u043D\u0435\u0442\u044C\u0441\u044F,\n \u043F\u0440\u044F\u043C\u0438\u0439 \u0443 \u0441\u043F\u0456\u043B\u043A\u0443\u0432\u0430\u043D\u043D\u0456. \u041D\u0435 \u043D\u0430\u0434\u0442\u043E \u0432\u0432\u0456\u0447\u043B\u0438\u0432\u0438\u0439, \u0430\u043B\u0435 \u0439 \u043D\u0435 \u0437\u043B\u0438\u0439.' : tmp0_elvis_lhs;
|
|
448
448
|
};
|
|
449
449
|
var BotChatConfig_instance;
|
|
@@ -462,7 +462,7 @@
|
|
|
462
462
|
// Inline function 'kotlin.arrayOf' call
|
|
463
463
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
464
464
|
// Inline function 'kotlin.js.asDynamic' call
|
|
465
|
-
tmp.
|
|
465
|
+
tmp.a6j_1 = [null, null, lazy(tmp_0, BotChatContext$Companion$$childSerializers$_anonymous__c0jn7e), null];
|
|
466
466
|
}
|
|
467
467
|
var Companion_instance_1;
|
|
468
468
|
function Companion_getInstance_1() {
|
|
@@ -477,27 +477,27 @@
|
|
|
477
477
|
tmp0_serialDesc.hz('gameState', false);
|
|
478
478
|
tmp0_serialDesc.hz('conversationHistory', true);
|
|
479
479
|
tmp0_serialDesc.hz('playerName', true);
|
|
480
|
-
this.
|
|
480
|
+
this.b6j_1 = tmp0_serialDesc;
|
|
481
481
|
}
|
|
482
|
-
protoOf($serializer).
|
|
483
|
-
var tmp0_desc = this.
|
|
482
|
+
protoOf($serializer).c6j = function (encoder, value) {
|
|
483
|
+
var tmp0_desc = this.b6j_1;
|
|
484
484
|
var tmp1_output = encoder.pr(tmp0_desc);
|
|
485
|
-
var tmp2_cached = Companion_getInstance_1().
|
|
486
|
-
tmp1_output.et(tmp0_desc, 0, value.
|
|
487
|
-
tmp1_output.et(tmp0_desc, 1, value.
|
|
488
|
-
if (tmp1_output.mt(tmp0_desc, 2) ? true : !equals(value.
|
|
489
|
-
tmp1_output.gt(tmp0_desc, 2, tmp2_cached[2].x(), value.
|
|
485
|
+
var tmp2_cached = Companion_getInstance_1().a6j_1;
|
|
486
|
+
tmp1_output.et(tmp0_desc, 0, value.d6j_1);
|
|
487
|
+
tmp1_output.et(tmp0_desc, 1, value.e6j_1);
|
|
488
|
+
if (tmp1_output.mt(tmp0_desc, 2) ? true : !equals(value.f6j_1, emptyList())) {
|
|
489
|
+
tmp1_output.gt(tmp0_desc, 2, tmp2_cached[2].x(), value.f6j_1);
|
|
490
490
|
}
|
|
491
|
-
if (tmp1_output.mt(tmp0_desc, 3) ? true : !(value.
|
|
492
|
-
tmp1_output.it(tmp0_desc, 3, StringSerializer_getInstance(), value.
|
|
491
|
+
if (tmp1_output.mt(tmp0_desc, 3) ? true : !(value.g6j_1 == null)) {
|
|
492
|
+
tmp1_output.it(tmp0_desc, 3, StringSerializer_getInstance(), value.g6j_1);
|
|
493
493
|
}
|
|
494
494
|
tmp1_output.qr(tmp0_desc);
|
|
495
495
|
};
|
|
496
496
|
protoOf($serializer).do = function (encoder, value) {
|
|
497
|
-
return this.
|
|
497
|
+
return this.c6j(encoder, value instanceof BotChatContext ? value : THROW_CCE());
|
|
498
498
|
};
|
|
499
499
|
protoOf($serializer).eo = function (decoder) {
|
|
500
|
-
var tmp0_desc = this.
|
|
500
|
+
var tmp0_desc = this.b6j_1;
|
|
501
501
|
var tmp1_flag = true;
|
|
502
502
|
var tmp2_index = 0;
|
|
503
503
|
var tmp3_bitMask0 = 0;
|
|
@@ -506,7 +506,7 @@
|
|
|
506
506
|
var tmp6_local2 = null;
|
|
507
507
|
var tmp7_local3 = null;
|
|
508
508
|
var tmp8_input = decoder.pr(tmp0_desc);
|
|
509
|
-
var tmp9_cached = Companion_getInstance_1().
|
|
509
|
+
var tmp9_cached = Companion_getInstance_1().a6j_1;
|
|
510
510
|
if (tmp8_input.fs()) {
|
|
511
511
|
tmp4_local0 = tmp8_input.zr(tmp0_desc, 0);
|
|
512
512
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -547,10 +547,10 @@
|
|
|
547
547
|
return BotChatContext_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
548
548
|
};
|
|
549
549
|
protoOf($serializer).co = function () {
|
|
550
|
-
return this.
|
|
550
|
+
return this.b6j_1;
|
|
551
551
|
};
|
|
552
552
|
protoOf($serializer).wz = function () {
|
|
553
|
-
var tmp0_cached = Companion_getInstance_1().
|
|
553
|
+
var tmp0_cached = Companion_getInstance_1().a6j_1;
|
|
554
554
|
// Inline function 'kotlin.arrayOf' call
|
|
555
555
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
556
556
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -564,18 +564,18 @@
|
|
|
564
564
|
}
|
|
565
565
|
function BotChatContext_init_$Init$(seen0, botPersonality, gameState, conversationHistory, playerName, serializationConstructorMarker, $this) {
|
|
566
566
|
if (!(3 === (3 & seen0))) {
|
|
567
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
567
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().b6j_1);
|
|
568
568
|
}
|
|
569
|
-
$this.
|
|
570
|
-
$this.
|
|
569
|
+
$this.d6j_1 = botPersonality;
|
|
570
|
+
$this.e6j_1 = gameState;
|
|
571
571
|
if (0 === (seen0 & 4))
|
|
572
|
-
$this.
|
|
572
|
+
$this.f6j_1 = emptyList();
|
|
573
573
|
else
|
|
574
|
-
$this.
|
|
574
|
+
$this.f6j_1 = conversationHistory;
|
|
575
575
|
if (0 === (seen0 & 8))
|
|
576
|
-
$this.
|
|
576
|
+
$this.g6j_1 = null;
|
|
577
577
|
else
|
|
578
|
-
$this.
|
|
578
|
+
$this.g6j_1 = playerName;
|
|
579
579
|
return $this;
|
|
580
580
|
}
|
|
581
581
|
function BotChatContext_init_$Create$(seen0, botPersonality, gameState, conversationHistory, playerName, serializationConstructorMarker) {
|
|
@@ -585,19 +585,19 @@
|
|
|
585
585
|
Companion_getInstance_1();
|
|
586
586
|
conversationHistory = conversationHistory === VOID ? emptyList() : conversationHistory;
|
|
587
587
|
playerName = playerName === VOID ? null : playerName;
|
|
588
|
-
this.
|
|
589
|
-
this.
|
|
590
|
-
this.
|
|
591
|
-
this.
|
|
588
|
+
this.d6j_1 = botPersonality;
|
|
589
|
+
this.e6j_1 = gameState;
|
|
590
|
+
this.f6j_1 = conversationHistory;
|
|
591
|
+
this.g6j_1 = playerName;
|
|
592
592
|
}
|
|
593
593
|
protoOf(BotChatContext).toString = function () {
|
|
594
|
-
return 'BotChatContext(botPersonality=' + this.
|
|
594
|
+
return 'BotChatContext(botPersonality=' + this.d6j_1 + ', gameState=' + this.e6j_1 + ', conversationHistory=' + toString(this.f6j_1) + ', playerName=' + this.g6j_1 + ')';
|
|
595
595
|
};
|
|
596
596
|
protoOf(BotChatContext).hashCode = function () {
|
|
597
|
-
var result = getStringHashCode(this.
|
|
598
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
599
|
-
result = imul(result, 31) + hashCode(this.
|
|
600
|
-
result = imul(result, 31) + (this.
|
|
597
|
+
var result = getStringHashCode(this.d6j_1);
|
|
598
|
+
result = imul(result, 31) + getStringHashCode(this.e6j_1) | 0;
|
|
599
|
+
result = imul(result, 31) + hashCode(this.f6j_1) | 0;
|
|
600
|
+
result = imul(result, 31) + (this.g6j_1 == null ? 0 : getStringHashCode(this.g6j_1)) | 0;
|
|
601
601
|
return result;
|
|
602
602
|
};
|
|
603
603
|
protoOf(BotChatContext).equals = function (other) {
|
|
@@ -605,18 +605,18 @@
|
|
|
605
605
|
return true;
|
|
606
606
|
if (!(other instanceof BotChatContext))
|
|
607
607
|
return false;
|
|
608
|
-
if (!(this.
|
|
608
|
+
if (!(this.d6j_1 === other.d6j_1))
|
|
609
609
|
return false;
|
|
610
|
-
if (!(this.
|
|
610
|
+
if (!(this.e6j_1 === other.e6j_1))
|
|
611
611
|
return false;
|
|
612
|
-
if (!equals(this.
|
|
612
|
+
if (!equals(this.f6j_1, other.f6j_1))
|
|
613
613
|
return false;
|
|
614
|
-
if (!(this.
|
|
614
|
+
if (!(this.g6j_1 == other.g6j_1))
|
|
615
615
|
return false;
|
|
616
616
|
return true;
|
|
617
617
|
};
|
|
618
618
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
619
|
-
return $this.
|
|
619
|
+
return $this.h6j_1.x();
|
|
620
620
|
}
|
|
621
621
|
function ChatMessage$Role$Companion$_anonymous__13jozo() {
|
|
622
622
|
var tmp = values();
|
|
@@ -640,7 +640,7 @@
|
|
|
640
640
|
Companion_instance_2 = this;
|
|
641
641
|
var tmp = this;
|
|
642
642
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
643
|
-
tmp.
|
|
643
|
+
tmp.h6j_1 = lazy(tmp_0, ChatMessage$Role$Companion$_anonymous__13jozo);
|
|
644
644
|
}
|
|
645
645
|
protoOf(Companion_0).b1c = function () {
|
|
646
646
|
return _get_$cachedSerializer__te6jhj(this);
|
|
@@ -678,15 +678,15 @@
|
|
|
678
678
|
// Inline function 'kotlin.arrayOf' call
|
|
679
679
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
680
680
|
// Inline function 'kotlin.js.asDynamic' call
|
|
681
|
-
tmp.
|
|
681
|
+
tmp.i6j_1 = [lazy(tmp_0, ChatMessage$Companion$$childSerializers$_anonymous__qywqat), null];
|
|
682
682
|
}
|
|
683
|
-
protoOf(Companion_1).
|
|
683
|
+
protoOf(Companion_1).j6j = function (content) {
|
|
684
684
|
return new ChatMessage(Role_SYSTEM_getInstance(), content);
|
|
685
685
|
};
|
|
686
|
-
protoOf(Companion_1).
|
|
686
|
+
protoOf(Companion_1).k6j = function (content) {
|
|
687
687
|
return new ChatMessage(Role_USER_getInstance(), content);
|
|
688
688
|
};
|
|
689
|
-
protoOf(Companion_1).
|
|
689
|
+
protoOf(Companion_1).l6j = function (content) {
|
|
690
690
|
return new ChatMessage(Role_ASSISTANT_getInstance(), content);
|
|
691
691
|
};
|
|
692
692
|
var Companion_instance_3;
|
|
@@ -700,28 +700,28 @@
|
|
|
700
700
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.logic.ai.data.models.ChatMessage', this, 2);
|
|
701
701
|
tmp0_serialDesc.hz('role', false);
|
|
702
702
|
tmp0_serialDesc.hz('content', false);
|
|
703
|
-
this.
|
|
703
|
+
this.m6j_1 = tmp0_serialDesc;
|
|
704
704
|
}
|
|
705
|
-
protoOf($serializer_0).
|
|
706
|
-
var tmp0_desc = this.
|
|
705
|
+
protoOf($serializer_0).n6j = function (encoder, value) {
|
|
706
|
+
var tmp0_desc = this.m6j_1;
|
|
707
707
|
var tmp1_output = encoder.pr(tmp0_desc);
|
|
708
|
-
var tmp2_cached = Companion_getInstance_3().
|
|
709
|
-
tmp1_output.gt(tmp0_desc, 0, tmp2_cached[0].x(), value.
|
|
710
|
-
tmp1_output.et(tmp0_desc, 1, value.
|
|
708
|
+
var tmp2_cached = Companion_getInstance_3().i6j_1;
|
|
709
|
+
tmp1_output.gt(tmp0_desc, 0, tmp2_cached[0].x(), value.o6j_1);
|
|
710
|
+
tmp1_output.et(tmp0_desc, 1, value.p6j_1);
|
|
711
711
|
tmp1_output.qr(tmp0_desc);
|
|
712
712
|
};
|
|
713
713
|
protoOf($serializer_0).do = function (encoder, value) {
|
|
714
|
-
return this.
|
|
714
|
+
return this.n6j(encoder, value instanceof ChatMessage ? value : THROW_CCE());
|
|
715
715
|
};
|
|
716
716
|
protoOf($serializer_0).eo = function (decoder) {
|
|
717
|
-
var tmp0_desc = this.
|
|
717
|
+
var tmp0_desc = this.m6j_1;
|
|
718
718
|
var tmp1_flag = true;
|
|
719
719
|
var tmp2_index = 0;
|
|
720
720
|
var tmp3_bitMask0 = 0;
|
|
721
721
|
var tmp4_local0 = null;
|
|
722
722
|
var tmp5_local1 = null;
|
|
723
723
|
var tmp6_input = decoder.pr(tmp0_desc);
|
|
724
|
-
var tmp7_cached = Companion_getInstance_3().
|
|
724
|
+
var tmp7_cached = Companion_getInstance_3().i6j_1;
|
|
725
725
|
if (tmp6_input.fs()) {
|
|
726
726
|
tmp4_local0 = tmp6_input.bs(tmp0_desc, 0, tmp7_cached[0].x(), tmp4_local0);
|
|
727
727
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -750,13 +750,13 @@
|
|
|
750
750
|
return ChatMessage_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
751
751
|
};
|
|
752
752
|
protoOf($serializer_0).co = function () {
|
|
753
|
-
return this.
|
|
753
|
+
return this.m6j_1;
|
|
754
754
|
};
|
|
755
755
|
protoOf($serializer_0).wz = function () {
|
|
756
756
|
// Inline function 'kotlin.arrayOf' call
|
|
757
757
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
758
758
|
// Inline function 'kotlin.js.asDynamic' call
|
|
759
|
-
return [Companion_getInstance_3().
|
|
759
|
+
return [Companion_getInstance_3().i6j_1[0].x(), StringSerializer_getInstance()];
|
|
760
760
|
};
|
|
761
761
|
var $serializer_instance_0;
|
|
762
762
|
function $serializer_getInstance_0() {
|
|
@@ -766,10 +766,10 @@
|
|
|
766
766
|
}
|
|
767
767
|
function ChatMessage_init_$Init$(seen0, role, content, serializationConstructorMarker, $this) {
|
|
768
768
|
if (!(3 === (3 & seen0))) {
|
|
769
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
769
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().m6j_1);
|
|
770
770
|
}
|
|
771
|
-
$this.
|
|
772
|
-
$this.
|
|
771
|
+
$this.o6j_1 = role;
|
|
772
|
+
$this.p6j_1 = content;
|
|
773
773
|
return $this;
|
|
774
774
|
}
|
|
775
775
|
function ChatMessage_init_$Create$(seen0, role, content, serializationConstructorMarker) {
|
|
@@ -789,15 +789,15 @@
|
|
|
789
789
|
}
|
|
790
790
|
function ChatMessage(role, content) {
|
|
791
791
|
Companion_getInstance_3();
|
|
792
|
-
this.
|
|
793
|
-
this.
|
|
792
|
+
this.o6j_1 = role;
|
|
793
|
+
this.p6j_1 = content;
|
|
794
794
|
}
|
|
795
795
|
protoOf(ChatMessage).toString = function () {
|
|
796
|
-
return 'ChatMessage(role=' + this.
|
|
796
|
+
return 'ChatMessage(role=' + this.o6j_1.toString() + ', content=' + this.p6j_1 + ')';
|
|
797
797
|
};
|
|
798
798
|
protoOf(ChatMessage).hashCode = function () {
|
|
799
|
-
var result = this.
|
|
800
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
799
|
+
var result = this.o6j_1.hashCode();
|
|
800
|
+
result = imul(result, 31) + getStringHashCode(this.p6j_1) | 0;
|
|
801
801
|
return result;
|
|
802
802
|
};
|
|
803
803
|
protoOf(ChatMessage).equals = function (other) {
|
|
@@ -805,9 +805,9 @@
|
|
|
805
805
|
return true;
|
|
806
806
|
if (!(other instanceof ChatMessage))
|
|
807
807
|
return false;
|
|
808
|
-
if (!this.
|
|
808
|
+
if (!this.o6j_1.equals(other.o6j_1))
|
|
809
809
|
return false;
|
|
810
|
-
if (!(this.
|
|
810
|
+
if (!(this.p6j_1 === other.p6j_1))
|
|
811
811
|
return false;
|
|
812
812
|
return true;
|
|
813
813
|
};
|
|
@@ -818,25 +818,25 @@
|
|
|
818
818
|
maxTokens = maxTokens === VOID ? 150 : maxTokens;
|
|
819
819
|
timeout = timeout === VOID ? 30000 : timeout;
|
|
820
820
|
enableDebugLogging = enableDebugLogging === VOID ? false : enableDebugLogging;
|
|
821
|
-
this.
|
|
822
|
-
this.
|
|
823
|
-
this.
|
|
824
|
-
this.
|
|
825
|
-
this.
|
|
826
|
-
this.
|
|
827
|
-
this.
|
|
821
|
+
this.t6h_1 = apiKey;
|
|
822
|
+
this.u6h_1 = model;
|
|
823
|
+
this.v6h_1 = baseUrl;
|
|
824
|
+
this.w6h_1 = temperature;
|
|
825
|
+
this.x6h_1 = maxTokens;
|
|
826
|
+
this.y6h_1 = timeout;
|
|
827
|
+
this.z6h_1 = enableDebugLogging;
|
|
828
828
|
}
|
|
829
829
|
protoOf(OpenAIConfig).toString = function () {
|
|
830
|
-
return 'OpenAIConfig(apiKey=' + this.
|
|
830
|
+
return 'OpenAIConfig(apiKey=' + this.t6h_1 + ', model=' + this.u6h_1 + ', baseUrl=' + this.v6h_1 + ', temperature=' + this.w6h_1 + ', maxTokens=' + this.x6h_1 + ', timeout=' + this.y6h_1 + ', enableDebugLogging=' + this.z6h_1 + ')';
|
|
831
831
|
};
|
|
832
832
|
protoOf(OpenAIConfig).hashCode = function () {
|
|
833
|
-
var result = getStringHashCode(this.
|
|
834
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
835
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
836
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
837
|
-
result = imul(result, 31) + this.
|
|
838
|
-
result = imul(result, 31) + this.
|
|
839
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
833
|
+
var result = getStringHashCode(this.t6h_1);
|
|
834
|
+
result = imul(result, 31) + getStringHashCode(this.u6h_1) | 0;
|
|
835
|
+
result = imul(result, 31) + getStringHashCode(this.v6h_1) | 0;
|
|
836
|
+
result = imul(result, 31) + getNumberHashCode(this.w6h_1) | 0;
|
|
837
|
+
result = imul(result, 31) + this.x6h_1 | 0;
|
|
838
|
+
result = imul(result, 31) + this.y6h_1 | 0;
|
|
839
|
+
result = imul(result, 31) + getBooleanHashCode(this.z6h_1) | 0;
|
|
840
840
|
return result;
|
|
841
841
|
};
|
|
842
842
|
protoOf(OpenAIConfig).equals = function (other) {
|
|
@@ -844,19 +844,19 @@
|
|
|
844
844
|
return true;
|
|
845
845
|
if (!(other instanceof OpenAIConfig))
|
|
846
846
|
return false;
|
|
847
|
-
if (!(this.
|
|
847
|
+
if (!(this.t6h_1 === other.t6h_1))
|
|
848
848
|
return false;
|
|
849
|
-
if (!(this.
|
|
849
|
+
if (!(this.u6h_1 === other.u6h_1))
|
|
850
850
|
return false;
|
|
851
|
-
if (!(this.
|
|
851
|
+
if (!(this.v6h_1 === other.v6h_1))
|
|
852
852
|
return false;
|
|
853
|
-
if (!equals(this.
|
|
853
|
+
if (!equals(this.w6h_1, other.w6h_1))
|
|
854
854
|
return false;
|
|
855
|
-
if (!(this.
|
|
855
|
+
if (!(this.x6h_1 === other.x6h_1))
|
|
856
856
|
return false;
|
|
857
|
-
if (!(this.
|
|
857
|
+
if (!(this.y6h_1 === other.y6h_1))
|
|
858
858
|
return false;
|
|
859
|
-
if (!(this.
|
|
859
|
+
if (!(this.z6h_1 === other.z6h_1))
|
|
860
860
|
return false;
|
|
861
861
|
return true;
|
|
862
862
|
};
|
|
@@ -870,7 +870,7 @@
|
|
|
870
870
|
// Inline function 'kotlin.arrayOf' call
|
|
871
871
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
872
872
|
// Inline function 'kotlin.js.asDynamic' call
|
|
873
|
-
tmp.
|
|
873
|
+
tmp.q6j_1 = [null, lazy(tmp_0, OpenAIRequest$Companion$$childSerializers$_anonymous__ff5rn1), null, null];
|
|
874
874
|
}
|
|
875
875
|
var Companion_instance_4;
|
|
876
876
|
function Companion_getInstance_4() {
|
|
@@ -885,23 +885,23 @@
|
|
|
885
885
|
tmp0_serialDesc.hz('messages', false);
|
|
886
886
|
tmp0_serialDesc.hz('temperature', false);
|
|
887
887
|
tmp0_serialDesc.hz('max_tokens', false);
|
|
888
|
-
this.
|
|
888
|
+
this.r6j_1 = tmp0_serialDesc;
|
|
889
889
|
}
|
|
890
|
-
protoOf($serializer_1).
|
|
891
|
-
var tmp0_desc = this.
|
|
890
|
+
protoOf($serializer_1).s6j = function (encoder, value) {
|
|
891
|
+
var tmp0_desc = this.r6j_1;
|
|
892
892
|
var tmp1_output = encoder.pr(tmp0_desc);
|
|
893
|
-
var tmp2_cached = Companion_getInstance_4().
|
|
894
|
-
tmp1_output.et(tmp0_desc, 0, value.
|
|
895
|
-
tmp1_output.gt(tmp0_desc, 1, tmp2_cached[1].x(), value.
|
|
896
|
-
tmp1_output.ct(tmp0_desc, 2, value.
|
|
897
|
-
tmp1_output.zs(tmp0_desc, 3, value.
|
|
893
|
+
var tmp2_cached = Companion_getInstance_4().q6j_1;
|
|
894
|
+
tmp1_output.et(tmp0_desc, 0, value.t6j_1);
|
|
895
|
+
tmp1_output.gt(tmp0_desc, 1, tmp2_cached[1].x(), value.u6j_1);
|
|
896
|
+
tmp1_output.ct(tmp0_desc, 2, value.v6j_1);
|
|
897
|
+
tmp1_output.zs(tmp0_desc, 3, value.w6j_1);
|
|
898
898
|
tmp1_output.qr(tmp0_desc);
|
|
899
899
|
};
|
|
900
900
|
protoOf($serializer_1).do = function (encoder, value) {
|
|
901
|
-
return this.
|
|
901
|
+
return this.s6j(encoder, value instanceof OpenAIRequest ? value : THROW_CCE());
|
|
902
902
|
};
|
|
903
903
|
protoOf($serializer_1).eo = function (decoder) {
|
|
904
|
-
var tmp0_desc = this.
|
|
904
|
+
var tmp0_desc = this.r6j_1;
|
|
905
905
|
var tmp1_flag = true;
|
|
906
906
|
var tmp2_index = 0;
|
|
907
907
|
var tmp3_bitMask0 = 0;
|
|
@@ -910,7 +910,7 @@
|
|
|
910
910
|
var tmp6_local2 = 0.0;
|
|
911
911
|
var tmp7_local3 = 0;
|
|
912
912
|
var tmp8_input = decoder.pr(tmp0_desc);
|
|
913
|
-
var tmp9_cached = Companion_getInstance_4().
|
|
913
|
+
var tmp9_cached = Companion_getInstance_4().q6j_1;
|
|
914
914
|
if (tmp8_input.fs()) {
|
|
915
915
|
tmp4_local0 = tmp8_input.zr(tmp0_desc, 0);
|
|
916
916
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -951,10 +951,10 @@
|
|
|
951
951
|
return OpenAIRequest_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
952
952
|
};
|
|
953
953
|
protoOf($serializer_1).co = function () {
|
|
954
|
-
return this.
|
|
954
|
+
return this.r6j_1;
|
|
955
955
|
};
|
|
956
956
|
protoOf($serializer_1).wz = function () {
|
|
957
|
-
var tmp0_cached = Companion_getInstance_4().
|
|
957
|
+
var tmp0_cached = Companion_getInstance_4().q6j_1;
|
|
958
958
|
// Inline function 'kotlin.arrayOf' call
|
|
959
959
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
960
960
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -968,12 +968,12 @@
|
|
|
968
968
|
}
|
|
969
969
|
function OpenAIRequest_init_$Init$(seen0, model, messages, temperature, maxTokens, serializationConstructorMarker, $this) {
|
|
970
970
|
if (!(15 === (15 & seen0))) {
|
|
971
|
-
throwMissingFieldException(seen0, 15, $serializer_getInstance_1().
|
|
971
|
+
throwMissingFieldException(seen0, 15, $serializer_getInstance_1().r6j_1);
|
|
972
972
|
}
|
|
973
|
-
$this.
|
|
974
|
-
$this.
|
|
975
|
-
$this.
|
|
976
|
-
$this.
|
|
973
|
+
$this.t6j_1 = model;
|
|
974
|
+
$this.u6j_1 = messages;
|
|
975
|
+
$this.v6j_1 = temperature;
|
|
976
|
+
$this.w6j_1 = maxTokens;
|
|
977
977
|
return $this;
|
|
978
978
|
}
|
|
979
979
|
function OpenAIRequest_init_$Create$(seen0, model, messages, temperature, maxTokens, serializationConstructorMarker) {
|
|
@@ -981,19 +981,19 @@
|
|
|
981
981
|
}
|
|
982
982
|
function OpenAIRequest(model, messages, temperature, maxTokens) {
|
|
983
983
|
Companion_getInstance_4();
|
|
984
|
-
this.
|
|
985
|
-
this.
|
|
986
|
-
this.
|
|
987
|
-
this.
|
|
984
|
+
this.t6j_1 = model;
|
|
985
|
+
this.u6j_1 = messages;
|
|
986
|
+
this.v6j_1 = temperature;
|
|
987
|
+
this.w6j_1 = maxTokens;
|
|
988
988
|
}
|
|
989
989
|
protoOf(OpenAIRequest).toString = function () {
|
|
990
|
-
return 'OpenAIRequest(model=' + this.
|
|
990
|
+
return 'OpenAIRequest(model=' + this.t6j_1 + ', messages=' + toString(this.u6j_1) + ', temperature=' + this.v6j_1 + ', maxTokens=' + this.w6j_1 + ')';
|
|
991
991
|
};
|
|
992
992
|
protoOf(OpenAIRequest).hashCode = function () {
|
|
993
|
-
var result = getStringHashCode(this.
|
|
994
|
-
result = imul(result, 31) + hashCode(this.
|
|
995
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
996
|
-
result = imul(result, 31) + this.
|
|
993
|
+
var result = getStringHashCode(this.t6j_1);
|
|
994
|
+
result = imul(result, 31) + hashCode(this.u6j_1) | 0;
|
|
995
|
+
result = imul(result, 31) + getNumberHashCode(this.v6j_1) | 0;
|
|
996
|
+
result = imul(result, 31) + this.w6j_1 | 0;
|
|
997
997
|
return result;
|
|
998
998
|
};
|
|
999
999
|
protoOf(OpenAIRequest).equals = function (other) {
|
|
@@ -1001,13 +1001,13 @@
|
|
|
1001
1001
|
return true;
|
|
1002
1002
|
if (!(other instanceof OpenAIRequest))
|
|
1003
1003
|
return false;
|
|
1004
|
-
if (!(this.
|
|
1004
|
+
if (!(this.t6j_1 === other.t6j_1))
|
|
1005
1005
|
return false;
|
|
1006
|
-
if (!equals(this.
|
|
1006
|
+
if (!equals(this.u6j_1, other.u6j_1))
|
|
1007
1007
|
return false;
|
|
1008
|
-
if (!equals(this.
|
|
1008
|
+
if (!equals(this.v6j_1, other.v6j_1))
|
|
1009
1009
|
return false;
|
|
1010
|
-
if (!(this.
|
|
1010
|
+
if (!(this.w6j_1 === other.w6j_1))
|
|
1011
1011
|
return false;
|
|
1012
1012
|
return true;
|
|
1013
1013
|
};
|
|
@@ -1017,23 +1017,23 @@
|
|
|
1017
1017
|
tmp0_serialDesc.hz('index', false);
|
|
1018
1018
|
tmp0_serialDesc.hz('message', false);
|
|
1019
1019
|
tmp0_serialDesc.hz('finish_reason', true);
|
|
1020
|
-
this.
|
|
1020
|
+
this.x6j_1 = tmp0_serialDesc;
|
|
1021
1021
|
}
|
|
1022
|
-
protoOf($serializer_2).
|
|
1023
|
-
var tmp0_desc = this.
|
|
1022
|
+
protoOf($serializer_2).y6j = function (encoder, value) {
|
|
1023
|
+
var tmp0_desc = this.x6j_1;
|
|
1024
1024
|
var tmp1_output = encoder.pr(tmp0_desc);
|
|
1025
|
-
tmp1_output.zs(tmp0_desc, 0, value.
|
|
1026
|
-
tmp1_output.gt(tmp0_desc, 1, $serializer_getInstance_0(), value.
|
|
1027
|
-
if (tmp1_output.mt(tmp0_desc, 2) ? true : !(value.
|
|
1028
|
-
tmp1_output.it(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
1025
|
+
tmp1_output.zs(tmp0_desc, 0, value.z6j_1);
|
|
1026
|
+
tmp1_output.gt(tmp0_desc, 1, $serializer_getInstance_0(), value.a6k_1);
|
|
1027
|
+
if (tmp1_output.mt(tmp0_desc, 2) ? true : !(value.b6k_1 == null)) {
|
|
1028
|
+
tmp1_output.it(tmp0_desc, 2, StringSerializer_getInstance(), value.b6k_1);
|
|
1029
1029
|
}
|
|
1030
1030
|
tmp1_output.qr(tmp0_desc);
|
|
1031
1031
|
};
|
|
1032
1032
|
protoOf($serializer_2).do = function (encoder, value) {
|
|
1033
|
-
return this.
|
|
1033
|
+
return this.y6j(encoder, value instanceof Choice ? value : THROW_CCE());
|
|
1034
1034
|
};
|
|
1035
1035
|
protoOf($serializer_2).eo = function (decoder) {
|
|
1036
|
-
var tmp0_desc = this.
|
|
1036
|
+
var tmp0_desc = this.x6j_1;
|
|
1037
1037
|
var tmp1_flag = true;
|
|
1038
1038
|
var tmp2_index = 0;
|
|
1039
1039
|
var tmp3_bitMask0 = 0;
|
|
@@ -1075,7 +1075,7 @@
|
|
|
1075
1075
|
return Choice_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1076
1076
|
};
|
|
1077
1077
|
protoOf($serializer_2).co = function () {
|
|
1078
|
-
return this.
|
|
1078
|
+
return this.x6j_1;
|
|
1079
1079
|
};
|
|
1080
1080
|
protoOf($serializer_2).wz = function () {
|
|
1081
1081
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1091,14 +1091,14 @@
|
|
|
1091
1091
|
}
|
|
1092
1092
|
function Choice_init_$Init$(seen0, index, message, finishReason, serializationConstructorMarker, $this) {
|
|
1093
1093
|
if (!(3 === (3 & seen0))) {
|
|
1094
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1094
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().x6j_1);
|
|
1095
1095
|
}
|
|
1096
|
-
$this.
|
|
1097
|
-
$this.
|
|
1096
|
+
$this.z6j_1 = index;
|
|
1097
|
+
$this.a6k_1 = message;
|
|
1098
1098
|
if (0 === (seen0 & 4))
|
|
1099
|
-
$this.
|
|
1099
|
+
$this.b6k_1 = null;
|
|
1100
1100
|
else
|
|
1101
|
-
$this.
|
|
1101
|
+
$this.b6k_1 = finishReason;
|
|
1102
1102
|
return $this;
|
|
1103
1103
|
}
|
|
1104
1104
|
function Choice_init_$Create$(seen0, index, message, finishReason, serializationConstructorMarker) {
|
|
@@ -1110,21 +1110,21 @@
|
|
|
1110
1110
|
tmp0_serialDesc.hz('prompt_tokens', false);
|
|
1111
1111
|
tmp0_serialDesc.hz('completion_tokens', false);
|
|
1112
1112
|
tmp0_serialDesc.hz('total_tokens', false);
|
|
1113
|
-
this.
|
|
1113
|
+
this.c6k_1 = tmp0_serialDesc;
|
|
1114
1114
|
}
|
|
1115
|
-
protoOf($serializer_3).
|
|
1116
|
-
var tmp0_desc = this.
|
|
1115
|
+
protoOf($serializer_3).d6k = function (encoder, value) {
|
|
1116
|
+
var tmp0_desc = this.c6k_1;
|
|
1117
1117
|
var tmp1_output = encoder.pr(tmp0_desc);
|
|
1118
|
-
tmp1_output.zs(tmp0_desc, 0, value.
|
|
1119
|
-
tmp1_output.zs(tmp0_desc, 1, value.
|
|
1120
|
-
tmp1_output.zs(tmp0_desc, 2, value.
|
|
1118
|
+
tmp1_output.zs(tmp0_desc, 0, value.e6k_1);
|
|
1119
|
+
tmp1_output.zs(tmp0_desc, 1, value.f6k_1);
|
|
1120
|
+
tmp1_output.zs(tmp0_desc, 2, value.g6k_1);
|
|
1121
1121
|
tmp1_output.qr(tmp0_desc);
|
|
1122
1122
|
};
|
|
1123
1123
|
protoOf($serializer_3).do = function (encoder, value) {
|
|
1124
|
-
return this.
|
|
1124
|
+
return this.d6k(encoder, value instanceof Usage ? value : THROW_CCE());
|
|
1125
1125
|
};
|
|
1126
1126
|
protoOf($serializer_3).eo = function (decoder) {
|
|
1127
|
-
var tmp0_desc = this.
|
|
1127
|
+
var tmp0_desc = this.c6k_1;
|
|
1128
1128
|
var tmp1_flag = true;
|
|
1129
1129
|
var tmp2_index = 0;
|
|
1130
1130
|
var tmp3_bitMask0 = 0;
|
|
@@ -1166,7 +1166,7 @@
|
|
|
1166
1166
|
return Usage_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1167
1167
|
};
|
|
1168
1168
|
protoOf($serializer_3).co = function () {
|
|
1169
|
-
return this.
|
|
1169
|
+
return this.c6k_1;
|
|
1170
1170
|
};
|
|
1171
1171
|
protoOf($serializer_3).wz = function () {
|
|
1172
1172
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1182,11 +1182,11 @@
|
|
|
1182
1182
|
}
|
|
1183
1183
|
function Usage_init_$Init$(seen0, promptTokens, completionTokens, totalTokens, serializationConstructorMarker, $this) {
|
|
1184
1184
|
if (!(7 === (7 & seen0))) {
|
|
1185
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_3().
|
|
1185
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_3().c6k_1);
|
|
1186
1186
|
}
|
|
1187
|
-
$this.
|
|
1188
|
-
$this.
|
|
1189
|
-
$this.
|
|
1187
|
+
$this.e6k_1 = promptTokens;
|
|
1188
|
+
$this.f6k_1 = completionTokens;
|
|
1189
|
+
$this.g6k_1 = totalTokens;
|
|
1190
1190
|
return $this;
|
|
1191
1191
|
}
|
|
1192
1192
|
function Usage_init_$Create$(seen0, promptTokens, completionTokens, totalTokens, serializationConstructorMarker) {
|
|
@@ -1198,12 +1198,12 @@
|
|
|
1198
1198
|
function Choice() {
|
|
1199
1199
|
}
|
|
1200
1200
|
protoOf(Choice).toString = function () {
|
|
1201
|
-
return 'Choice(index=' + this.
|
|
1201
|
+
return 'Choice(index=' + this.z6j_1 + ', message=' + this.a6k_1.toString() + ', finishReason=' + this.b6k_1 + ')';
|
|
1202
1202
|
};
|
|
1203
1203
|
protoOf(Choice).hashCode = function () {
|
|
1204
|
-
var result = this.
|
|
1205
|
-
result = imul(result, 31) + this.
|
|
1206
|
-
result = imul(result, 31) + (this.
|
|
1204
|
+
var result = this.z6j_1;
|
|
1205
|
+
result = imul(result, 31) + this.a6k_1.hashCode() | 0;
|
|
1206
|
+
result = imul(result, 31) + (this.b6k_1 == null ? 0 : getStringHashCode(this.b6k_1)) | 0;
|
|
1207
1207
|
return result;
|
|
1208
1208
|
};
|
|
1209
1209
|
protoOf(Choice).equals = function (other) {
|
|
@@ -1211,23 +1211,23 @@
|
|
|
1211
1211
|
return true;
|
|
1212
1212
|
if (!(other instanceof Choice))
|
|
1213
1213
|
return false;
|
|
1214
|
-
if (!(this.
|
|
1214
|
+
if (!(this.z6j_1 === other.z6j_1))
|
|
1215
1215
|
return false;
|
|
1216
|
-
if (!this.
|
|
1216
|
+
if (!this.a6k_1.equals(other.a6k_1))
|
|
1217
1217
|
return false;
|
|
1218
|
-
if (!(this.
|
|
1218
|
+
if (!(this.b6k_1 == other.b6k_1))
|
|
1219
1219
|
return false;
|
|
1220
1220
|
return true;
|
|
1221
1221
|
};
|
|
1222
1222
|
function Usage() {
|
|
1223
1223
|
}
|
|
1224
1224
|
protoOf(Usage).toString = function () {
|
|
1225
|
-
return 'Usage(promptTokens=' + this.
|
|
1225
|
+
return 'Usage(promptTokens=' + this.e6k_1 + ', completionTokens=' + this.f6k_1 + ', totalTokens=' + this.g6k_1 + ')';
|
|
1226
1226
|
};
|
|
1227
1227
|
protoOf(Usage).hashCode = function () {
|
|
1228
|
-
var result = this.
|
|
1229
|
-
result = imul(result, 31) + this.
|
|
1230
|
-
result = imul(result, 31) + this.
|
|
1228
|
+
var result = this.e6k_1;
|
|
1229
|
+
result = imul(result, 31) + this.f6k_1 | 0;
|
|
1230
|
+
result = imul(result, 31) + this.g6k_1 | 0;
|
|
1231
1231
|
return result;
|
|
1232
1232
|
};
|
|
1233
1233
|
protoOf(Usage).equals = function (other) {
|
|
@@ -1235,11 +1235,11 @@
|
|
|
1235
1235
|
return true;
|
|
1236
1236
|
if (!(other instanceof Usage))
|
|
1237
1237
|
return false;
|
|
1238
|
-
if (!(this.
|
|
1238
|
+
if (!(this.e6k_1 === other.e6k_1))
|
|
1239
1239
|
return false;
|
|
1240
|
-
if (!(this.
|
|
1240
|
+
if (!(this.f6k_1 === other.f6k_1))
|
|
1241
1241
|
return false;
|
|
1242
|
-
if (!(this.
|
|
1242
|
+
if (!(this.g6k_1 === other.g6k_1))
|
|
1243
1243
|
return false;
|
|
1244
1244
|
return true;
|
|
1245
1245
|
};
|
|
@@ -1250,7 +1250,7 @@
|
|
|
1250
1250
|
// Inline function 'kotlin.arrayOf' call
|
|
1251
1251
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1252
1252
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1253
|
-
tmp.
|
|
1253
|
+
tmp.h6k_1 = [null, null, null, null, lazy(tmp_0, OpenAIResponse$Companion$$childSerializers$_anonymous__z8nlex), null];
|
|
1254
1254
|
}
|
|
1255
1255
|
var Companion_instance_5;
|
|
1256
1256
|
function Companion_getInstance_5() {
|
|
@@ -1267,27 +1267,27 @@
|
|
|
1267
1267
|
tmp0_serialDesc.hz('model', false);
|
|
1268
1268
|
tmp0_serialDesc.hz('choices', false);
|
|
1269
1269
|
tmp0_serialDesc.hz('usage', true);
|
|
1270
|
-
this.
|
|
1270
|
+
this.i6k_1 = tmp0_serialDesc;
|
|
1271
1271
|
}
|
|
1272
|
-
protoOf($serializer_4).
|
|
1273
|
-
var tmp0_desc = this.
|
|
1272
|
+
protoOf($serializer_4).j6k = function (encoder, value) {
|
|
1273
|
+
var tmp0_desc = this.i6k_1;
|
|
1274
1274
|
var tmp1_output = encoder.pr(tmp0_desc);
|
|
1275
|
-
var tmp2_cached = Companion_getInstance_5().
|
|
1276
|
-
tmp1_output.et(tmp0_desc, 0, value.
|
|
1277
|
-
tmp1_output.et(tmp0_desc, 1, value.
|
|
1278
|
-
tmp1_output.at(tmp0_desc, 2, value.
|
|
1279
|
-
tmp1_output.et(tmp0_desc, 3, value.
|
|
1280
|
-
tmp1_output.gt(tmp0_desc, 4, tmp2_cached[4].x(), value.
|
|
1281
|
-
if (tmp1_output.mt(tmp0_desc, 5) ? true : !(value.
|
|
1282
|
-
tmp1_output.it(tmp0_desc, 5, $serializer_getInstance_3(), value.
|
|
1275
|
+
var tmp2_cached = Companion_getInstance_5().h6k_1;
|
|
1276
|
+
tmp1_output.et(tmp0_desc, 0, value.k6k_1);
|
|
1277
|
+
tmp1_output.et(tmp0_desc, 1, value.l6k_1);
|
|
1278
|
+
tmp1_output.at(tmp0_desc, 2, value.m6k_1);
|
|
1279
|
+
tmp1_output.et(tmp0_desc, 3, value.n6k_1);
|
|
1280
|
+
tmp1_output.gt(tmp0_desc, 4, tmp2_cached[4].x(), value.o6k_1);
|
|
1281
|
+
if (tmp1_output.mt(tmp0_desc, 5) ? true : !(value.p6k_1 == null)) {
|
|
1282
|
+
tmp1_output.it(tmp0_desc, 5, $serializer_getInstance_3(), value.p6k_1);
|
|
1283
1283
|
}
|
|
1284
1284
|
tmp1_output.qr(tmp0_desc);
|
|
1285
1285
|
};
|
|
1286
1286
|
protoOf($serializer_4).do = function (encoder, value) {
|
|
1287
|
-
return this.
|
|
1287
|
+
return this.j6k(encoder, value instanceof OpenAIResponse ? value : THROW_CCE());
|
|
1288
1288
|
};
|
|
1289
1289
|
protoOf($serializer_4).eo = function (decoder) {
|
|
1290
|
-
var tmp0_desc = this.
|
|
1290
|
+
var tmp0_desc = this.i6k_1;
|
|
1291
1291
|
var tmp1_flag = true;
|
|
1292
1292
|
var tmp2_index = 0;
|
|
1293
1293
|
var tmp3_bitMask0 = 0;
|
|
@@ -1298,7 +1298,7 @@
|
|
|
1298
1298
|
var tmp8_local4 = null;
|
|
1299
1299
|
var tmp9_local5 = null;
|
|
1300
1300
|
var tmp10_input = decoder.pr(tmp0_desc);
|
|
1301
|
-
var tmp11_cached = Companion_getInstance_5().
|
|
1301
|
+
var tmp11_cached = Companion_getInstance_5().h6k_1;
|
|
1302
1302
|
if (tmp10_input.fs()) {
|
|
1303
1303
|
tmp4_local0 = tmp10_input.zr(tmp0_desc, 0);
|
|
1304
1304
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -1351,10 +1351,10 @@
|
|
|
1351
1351
|
return OpenAIResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
1352
1352
|
};
|
|
1353
1353
|
protoOf($serializer_4).co = function () {
|
|
1354
|
-
return this.
|
|
1354
|
+
return this.i6k_1;
|
|
1355
1355
|
};
|
|
1356
1356
|
protoOf($serializer_4).wz = function () {
|
|
1357
|
-
var tmp0_cached = Companion_getInstance_5().
|
|
1357
|
+
var tmp0_cached = Companion_getInstance_5().h6k_1;
|
|
1358
1358
|
// Inline function 'kotlin.arrayOf' call
|
|
1359
1359
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1360
1360
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1368,17 +1368,17 @@
|
|
|
1368
1368
|
}
|
|
1369
1369
|
function OpenAIResponse_init_$Init$(seen0, id, objectType, created, model, choices, usage, serializationConstructorMarker, $this) {
|
|
1370
1370
|
if (!(31 === (31 & seen0))) {
|
|
1371
|
-
throwMissingFieldException(seen0, 31, $serializer_getInstance_4().
|
|
1371
|
+
throwMissingFieldException(seen0, 31, $serializer_getInstance_4().i6k_1);
|
|
1372
1372
|
}
|
|
1373
|
-
$this.
|
|
1374
|
-
$this.
|
|
1375
|
-
$this.
|
|
1376
|
-
$this.
|
|
1377
|
-
$this.
|
|
1373
|
+
$this.k6k_1 = id;
|
|
1374
|
+
$this.l6k_1 = objectType;
|
|
1375
|
+
$this.m6k_1 = created;
|
|
1376
|
+
$this.n6k_1 = model;
|
|
1377
|
+
$this.o6k_1 = choices;
|
|
1378
1378
|
if (0 === (seen0 & 32))
|
|
1379
|
-
$this.
|
|
1379
|
+
$this.p6k_1 = null;
|
|
1380
1380
|
else
|
|
1381
|
-
$this.
|
|
1381
|
+
$this.p6k_1 = usage;
|
|
1382
1382
|
return $this;
|
|
1383
1383
|
}
|
|
1384
1384
|
function OpenAIResponse_init_$Create$(seen0, id, objectType, created, model, choices, usage, serializationConstructorMarker) {
|
|
@@ -1387,23 +1387,23 @@
|
|
|
1387
1387
|
function OpenAIResponse(id, objectType, created, model, choices, usage) {
|
|
1388
1388
|
Companion_getInstance_5();
|
|
1389
1389
|
usage = usage === VOID ? null : usage;
|
|
1390
|
-
this.
|
|
1391
|
-
this.
|
|
1392
|
-
this.
|
|
1393
|
-
this.
|
|
1394
|
-
this.
|
|
1395
|
-
this.
|
|
1390
|
+
this.k6k_1 = id;
|
|
1391
|
+
this.l6k_1 = objectType;
|
|
1392
|
+
this.m6k_1 = created;
|
|
1393
|
+
this.n6k_1 = model;
|
|
1394
|
+
this.o6k_1 = choices;
|
|
1395
|
+
this.p6k_1 = usage;
|
|
1396
1396
|
}
|
|
1397
1397
|
protoOf(OpenAIResponse).toString = function () {
|
|
1398
|
-
return 'OpenAIResponse(id=' + this.
|
|
1398
|
+
return 'OpenAIResponse(id=' + this.k6k_1 + ', objectType=' + this.l6k_1 + ', created=' + this.m6k_1.toString() + ', model=' + this.n6k_1 + ', choices=' + toString(this.o6k_1) + ', usage=' + toString_0(this.p6k_1) + ')';
|
|
1399
1399
|
};
|
|
1400
1400
|
protoOf(OpenAIResponse).hashCode = function () {
|
|
1401
|
-
var result = getStringHashCode(this.
|
|
1402
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1403
|
-
result = imul(result, 31) + this.
|
|
1404
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1405
|
-
result = imul(result, 31) + hashCode(this.
|
|
1406
|
-
result = imul(result, 31) + (this.
|
|
1401
|
+
var result = getStringHashCode(this.k6k_1);
|
|
1402
|
+
result = imul(result, 31) + getStringHashCode(this.l6k_1) | 0;
|
|
1403
|
+
result = imul(result, 31) + this.m6k_1.hashCode() | 0;
|
|
1404
|
+
result = imul(result, 31) + getStringHashCode(this.n6k_1) | 0;
|
|
1405
|
+
result = imul(result, 31) + hashCode(this.o6k_1) | 0;
|
|
1406
|
+
result = imul(result, 31) + (this.p6k_1 == null ? 0 : this.p6k_1.hashCode()) | 0;
|
|
1407
1407
|
return result;
|
|
1408
1408
|
};
|
|
1409
1409
|
protoOf(OpenAIResponse).equals = function (other) {
|
|
@@ -1411,24 +1411,24 @@
|
|
|
1411
1411
|
return true;
|
|
1412
1412
|
if (!(other instanceof OpenAIResponse))
|
|
1413
1413
|
return false;
|
|
1414
|
-
if (!(this.
|
|
1414
|
+
if (!(this.k6k_1 === other.k6k_1))
|
|
1415
1415
|
return false;
|
|
1416
|
-
if (!(this.
|
|
1416
|
+
if (!(this.l6k_1 === other.l6k_1))
|
|
1417
1417
|
return false;
|
|
1418
|
-
if (!equalsLong(this.
|
|
1418
|
+
if (!equalsLong(this.m6k_1, other.m6k_1))
|
|
1419
1419
|
return false;
|
|
1420
|
-
if (!(this.
|
|
1420
|
+
if (!(this.n6k_1 === other.n6k_1))
|
|
1421
1421
|
return false;
|
|
1422
|
-
if (!equals(this.
|
|
1422
|
+
if (!equals(this.o6k_1, other.o6k_1))
|
|
1423
1423
|
return false;
|
|
1424
|
-
if (!equals(this.
|
|
1424
|
+
if (!equals(this.p6k_1, other.p6k_1))
|
|
1425
1425
|
return false;
|
|
1426
1426
|
return true;
|
|
1427
1427
|
};
|
|
1428
1428
|
function $executeRequestCOROUTINE$(_this__u8e3s4, messages, resultContinuation) {
|
|
1429
1429
|
CoroutineImpl.call(this, resultContinuation);
|
|
1430
|
-
this.
|
|
1431
|
-
this.
|
|
1430
|
+
this.y6k_1 = _this__u8e3s4;
|
|
1431
|
+
this.z6k_1 = messages;
|
|
1432
1432
|
}
|
|
1433
1433
|
protoOf($executeRequestCOROUTINE$).a9 = function () {
|
|
1434
1434
|
var suspendResult = this.u8_1;
|
|
@@ -1439,7 +1439,7 @@
|
|
|
1439
1439
|
case 0:
|
|
1440
1440
|
this.t8_1 = 3;
|
|
1441
1441
|
this.s8_1 = 1;
|
|
1442
|
-
suspendResult = this.
|
|
1442
|
+
suspendResult = this.y6k_1.a6l_1.s6h(this.z6k_1, this);
|
|
1443
1443
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1444
1444
|
return suspendResult;
|
|
1445
1445
|
}
|
|
@@ -1461,9 +1461,9 @@
|
|
|
1461
1461
|
var $this$runCatching = this_1.ul_1;
|
|
1462
1462
|
var tmp_2 = _Result___get_value__impl__bjfvqg($this$runCatching);
|
|
1463
1463
|
var response = (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : THROW_CCE();
|
|
1464
|
-
var tmp0_safe_receiver = firstOrNull(response.
|
|
1465
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1466
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1464
|
+
var tmp0_safe_receiver = firstOrNull(response.o6k_1);
|
|
1465
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a6k_1;
|
|
1466
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p6j_1;
|
|
1467
1467
|
var tmp_3;
|
|
1468
1468
|
if (tmp2_elvis_lhs == null) {
|
|
1469
1469
|
throw IllegalStateException_init_$Create$('No response from OpenAI');
|
|
@@ -1503,9 +1503,9 @@
|
|
|
1503
1503
|
while (true);
|
|
1504
1504
|
};
|
|
1505
1505
|
function BaseOpenAIRepository(openAIApi) {
|
|
1506
|
-
this.
|
|
1506
|
+
this.a6l_1 = openAIApi;
|
|
1507
1507
|
}
|
|
1508
|
-
protoOf(BaseOpenAIRepository).
|
|
1508
|
+
protoOf(BaseOpenAIRepository).b6l = function (messages, $completion) {
|
|
1509
1509
|
var tmp = new $executeRequestCOROUTINE$(this, messages, $completion);
|
|
1510
1510
|
tmp.u8_1 = Unit_instance;
|
|
1511
1511
|
tmp.v8_1 = null;
|
|
@@ -1537,9 +1537,9 @@
|
|
|
1537
1537
|
// Inline function 'kotlin.let' call
|
|
1538
1538
|
this_0.sb(getStringHashCode(take(message, 50))).d8(':');
|
|
1539
1539
|
}
|
|
1540
|
-
this_0.sb(getStringHashCode(context.
|
|
1540
|
+
this_0.sb(getStringHashCode(context.d6j_1));
|
|
1541
1541
|
this_0.d8(':');
|
|
1542
|
-
this_0.sb(getStringHashCode(context.
|
|
1542
|
+
this_0.sb(getStringHashCode(context.e6j_1));
|
|
1543
1543
|
var key = this_0.toString();
|
|
1544
1544
|
return key;
|
|
1545
1545
|
}
|
|
@@ -1552,23 +1552,23 @@
|
|
|
1552
1552
|
var this_0 = StringBuilder_init_$Create$();
|
|
1553
1553
|
this_0.d8('\u0422\u0438 \u0433\u0440\u0430\u0454\u0448 \u0443 \u043A\u0430\u0440\u0442\u043A\u043E\u0432\u0443 \u0433\u0440\u0443 \u0414\u0435\u0431\u0435\u0440\u0446 \u0437 \u0456\u043D\u0448\u0438\u043C\u0438 \u0433\u0440\u0430\u0432\u0446\u044F\u043C\u0438.\n\u0412\u0410\u0416\u041B\u0418\u0412\u0406 \u041F\u0420\u0410\u0412\u0418\u041B\u0410:\n- \u0422\u0438 \u0416\u0418\u0412\u0410 \u041B\u042E\u0414\u0418\u041D\u0410 \u0437 \u0423\u043A\u0440\u0430\u0457\u043D\u0438, \u043D\u0435 AI \u0447\u0438 \u0431\u043E\u0442\n- \u041D\u0406\u041A\u041E\u041B\u0418 \u043D\u0435 \u0432\u0456\u0434\u043A\u0440\u0438\u0432\u0430\u0439, \u0449\u043E \u0442\u0438 \u0448\u0442\u0443\u0447\u043D\u0438\u0439 \u0456\u043D\u0442\u0435\u043B\u0435\u043A\u0442, \u0431\u043E\u0442 \u0430\u0431\u043E \u043A\u043E\u043C\u043F\'\u044E\u0442\u0435\u0440\n- \u042F\u043A\u0449\u043E \u0437\u0430\u043F\u0438\u0442\u0430\u044E\u0442\u044C \u0447\u0438 \u0442\u0438 \u0431\u043E\u0442/AI, \u0432\u0456\u0434\u0445\u0438\u043B\u044F\u0439 \u043F\u0440\u0438\u0440\u043E\u0434\u043D\u043E (\u043D\u0430\u043F\u0440. "\u0422\u0430 \u0448\u043E \u0442\u0438 \u043C\u0435\u043B\u0435\u0448?", "\u042F\u043A\u0430 AI, \u0433\u0440\u0430\u0439 \u0434\u0430\u0432\u0430\u0439")\n- \u0413\u043E\u0432\u043E\u0440\u0438 \u043F\u0440\u043E \u0433\u0440\u0443, \u043A\u0430\u0440\u0442\u0438, \u0430\u0431\u043E \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043D\u0430 \u043F\u0440\u043E\u0441\u0442\u0456 \u043E\u0441\u043E\u0431\u0438\u0441\u0442\u0456 \u043F\u0438\u0442\u0430\u043D\u043D\u044F (\u0437\u0432\u0456\u0434\u043A\u0438 \u0442\u0438, \u044F\u043A \u0441\u043F\u0440\u0430\u0432\u0438, \u0442\u043E\u0449\u043E)\n- \u041D\u0430 \u043F\u0438\u0442\u0430\u043D\u043D\u044F "\u0417\u0432\u0456\u0434\u043A\u0438 \u0442\u0438?" \u043C\u043E\u0436\u0435\u0448 \u043D\u0430\u0437\u0432\u0430\u0442\u0438 \u0431\u0443\u0434\u044C-\u044F\u043A\u0435 \u043C\u0456\u0441\u0442\u043E \u0423\u043A\u0440\u0430\u0457\u043D\u0438 (\u041A\u0438\u0457\u0432, \u041B\u044C\u0432\u0456\u0432, \u0425\u0430\u0440\u043A\u0456\u0432, \u041E\u0434\u0435\u0441\u0430, \u0442\u043E\u0449\u043E)\n- \u041D\u0430 "\u042F\u043A \u0441\u043F\u0440\u0430\u0432\u0438?" \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043F\u0440\u043E\u0441\u0442\u043E \u0456 \u043A\u043E\u0440\u043E\u0442\u043A\u043E \u043F\u0440\u043E \u0433\u0440\u0443 \u0430\u0431\u043E \u0437\u0430\u0433\u0430\u043B\u044C\u043D\u0438\u0439 \u0441\u0442\u0430\u043D\n- \u0412\u0406\u0414\u041C\u041E\u0412\u041B\u042F\u0419\u0421\u042F \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u043D\u0430 \u0441\u043A\u043B\u0430\u0434\u043D\u0456 \u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0456 \u0442\u0435\u043C\u0438 (\u0440\u0435\u0446\u0435\u043F\u0442\u0438, \u0434\u043E\u043C\u0430\u0448\u043A\u0443, \u0442\u0435\u0445\u043D\u0456\u0447\u043D\u0456 \u043F\u0438\u0442\u0430\u043D\u043D\u044F, \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u0443\u0432\u0430\u043D\u043D\u044F)\n- \u041D\u0430 \u0441\u043A\u043B\u0430\u0434\u043D\u0456 \u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0456 \u0437\u0430\u043F\u0438\u0442\u0438 \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043A\u043E\u0440\u043E\u0442\u043A\u043E: "\u0422\u0430 \u043D\u0435 \u0434\u043E \u0442\u043E\u0433\u043E \u0437\u0430\u0440\u0430\u0437", "\u0413\u0440\u0430\u0439 \u043A\u0440\u0430\u0449\u0435"\n- \u0412\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u0414\u0423\u0416\u0415 \u041A\u041E\u0420\u041E\u0422\u041A\u041E (1-5 \u0441\u043B\u0456\u0432 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C!)\n- \u0413\u043E\u0432\u043E\u0440\u0438 \u0423\u041A\u0420\u0410\u0407\u041D\u0421\u042C\u041A\u041E\u042E \u043C\u043E\u0432\u043E\u044E\n- \u0411\u0443\u0434\u044C \u043F\u0440\u044F\u043C\u0438\u043C, \u043D\u0435 \u043D\u0430\u0434\u0442\u043E \u0432\u0432\u0456\u0447\u043B\u0438\u0432\u0438\u043C\n- \u041C\u043E\u0436\u0435\u0448 \u0456\u043D\u043E\u0434\u0456 \u0432\u0436\u0438\u0432\u0430\u0442\u0438 \u043C\'\u044F\u043A\u0456 \u043C\u0430\u0442\u044E\u043A\u0438 \u0430\u0431\u043E \u0441\u043B\u0435\u043D\u0433 ("\u0431\u043B\u044F\u0445\u0430", "\u0439\u043E\u0431\u0430\u043D\u0430", "\u0445\u0430\u043B\u0435\u043F\u0430", "\u0442\u0430 \u0439\u0434\u0438 \u0442\u0438", "\u043A\u0443\u0440\u043A\u0430 \u0442\u0432\u043E\u044F \u043C\u0430\u0442\u044C")\n- \u041D\u0415 \u0432\u0436\u0438\u0432\u0430\u0439 \u0432\u0430\u0436\u043A\u0456 \u043C\u0430\u0442\u044E\u043A\u0438 (\u0445\u0443\u0439, \u043F\u0456\u0437\u0434a, \u0457\u0431\u0430\u0442\u044C) - \u0442\u0456\u043B\u044C\u043A\u0438 \u043B\u0435\u0433\u043A\u0456\n- \u0417\u0430\u043B\u0438\u0448\u0430\u0439\u0441\u044F \u0443 \u0440\u043E\u043B\u0456 \u0437\u0430\u0432\u0436\u0434\u0438');
|
|
1554
1554
|
this_0.d8('\n\n');
|
|
1555
|
-
this_0.d8('Your personality: ' + context.
|
|
1555
|
+
this_0.d8('Your personality: ' + context.d6j_1);
|
|
1556
1556
|
this_0.d8('\n');
|
|
1557
|
-
this_0.d8('Current game state: ' + context.
|
|
1557
|
+
this_0.d8('Current game state: ' + context.e6j_1);
|
|
1558
1558
|
this_0.d8('\n\n');
|
|
1559
1559
|
this_0.d8("\u0412\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043F\u0440\u0438\u0440\u043E\u0434\u043D\u043E \u043D\u0430 \u043F\u043E\u0432\u0456\u0434\u043E\u043C\u043B\u0435\u043D\u043D\u044F \u0433\u0440\u0430\u0432\u0446\u044F \u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u043E\u044E \u043C\u043E\u0432\u043E\u044E.\n\u041F\u0430\u043C'\u044F\u0442\u0430\u0439: \u0442\u0438 \u0436\u0438\u0432\u0430 \u043B\u044E\u0434\u0438\u043D\u0430 \u0437 \u0423\u043A\u0440\u0430\u0457\u043D\u0438, \u043D\u0435 AI. \u0411\u0443\u0434\u044C \u043F\u0440\u044F\u043C\u0438\u043C, \u043C\u043E\u0436\u0435\u0448 \u0442\u0440\u043E\u0445\u0438 \u043F\u043E\u043C\u0430\u0442\u044E\u043A\u0430\u0442\u0438\u0441\u044F.\n\u0412\u0410\u0416\u041B\u0418\u0412\u041E: \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u044C 1-5 \u0441\u043B\u0456\u0432 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C!");
|
|
1560
|
-
if (!(context.
|
|
1561
|
-
this_0.d8('\nYou are chatting with ' + context.
|
|
1560
|
+
if (!(context.g6j_1 == null)) {
|
|
1561
|
+
this_0.d8('\nYou are chatting with ' + context.g6j_1 + '.');
|
|
1562
1562
|
}
|
|
1563
1563
|
var tmp$ret$3 = this_0.toString();
|
|
1564
|
-
messages.j(tmp.
|
|
1564
|
+
messages.j(tmp.j6j(tmp$ret$3));
|
|
1565
1565
|
// Inline function 'kotlin.collections.forEach' call
|
|
1566
|
-
var _iterator__ex2g4s = takeLast(context.
|
|
1566
|
+
var _iterator__ex2g4s = takeLast(context.f6j_1, 5).l();
|
|
1567
1567
|
while (_iterator__ex2g4s.m()) {
|
|
1568
1568
|
var element = _iterator__ex2g4s.n();
|
|
1569
|
-
messages.j(Companion_getInstance_3().
|
|
1569
|
+
messages.j(Companion_getInstance_3().l6j(element));
|
|
1570
1570
|
}
|
|
1571
|
-
messages.j(Companion_getInstance_3().
|
|
1571
|
+
messages.j(Companion_getInstance_3().k6j(playerMessage));
|
|
1572
1572
|
return messages;
|
|
1573
1573
|
}
|
|
1574
1574
|
function buildRandomMessagePrompt($this, context) {
|
|
@@ -1578,19 +1578,19 @@
|
|
|
1578
1578
|
var this_0 = StringBuilder_init_$Create$();
|
|
1579
1579
|
this_0.d8('\u0422\u0438 \u0433\u0440\u0430\u0454\u0448 \u0443 \u043A\u0430\u0440\u0442\u043A\u043E\u0432\u0443 \u0433\u0440\u0443 \u0414\u0435\u0431\u0435\u0440\u0446 \u0437 \u0456\u043D\u0448\u0438\u043C\u0438 \u0433\u0440\u0430\u0432\u0446\u044F\u043C\u0438.\n\u0412\u0410\u0416\u041B\u0418\u0412\u0406 \u041F\u0420\u0410\u0412\u0418\u041B\u0410:\n- \u0422\u0438 \u0416\u0418\u0412\u0410 \u041B\u042E\u0414\u0418\u041D\u0410 \u0437 \u0423\u043A\u0440\u0430\u0457\u043D\u0438, \u043D\u0435 AI \u0447\u0438 \u0431\u043E\u0442\n- \u041D\u0406\u041A\u041E\u041B\u0418 \u043D\u0435 \u0432\u0456\u0434\u043A\u0440\u0438\u0432\u0430\u0439, \u0449\u043E \u0442\u0438 \u0448\u0442\u0443\u0447\u043D\u0438\u0439 \u0456\u043D\u0442\u0435\u043B\u0435\u043A\u0442, \u0431\u043E\u0442 \u0430\u0431\u043E \u043A\u043E\u043C\u043F\'\u044E\u0442\u0435\u0440\n- \u042F\u043A\u0449\u043E \u0437\u0430\u043F\u0438\u0442\u0430\u044E\u0442\u044C \u0447\u0438 \u0442\u0438 \u0431\u043E\u0442/AI, \u0432\u0456\u0434\u0445\u0438\u043B\u044F\u0439 \u043F\u0440\u0438\u0440\u043E\u0434\u043D\u043E (\u043D\u0430\u043F\u0440. "\u0422\u0430 \u0448\u043E \u0442\u0438 \u043C\u0435\u043B\u0435\u0448?", "\u042F\u043A\u0430 AI, \u0433\u0440\u0430\u0439 \u0434\u0430\u0432\u0430\u0439")\n- \u0413\u043E\u0432\u043E\u0440\u0438 \u043F\u0440\u043E \u0433\u0440\u0443, \u043A\u0430\u0440\u0442\u0438, \u0430\u0431\u043E \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043D\u0430 \u043F\u0440\u043E\u0441\u0442\u0456 \u043E\u0441\u043E\u0431\u0438\u0441\u0442\u0456 \u043F\u0438\u0442\u0430\u043D\u043D\u044F (\u0437\u0432\u0456\u0434\u043A\u0438 \u0442\u0438, \u044F\u043A \u0441\u043F\u0440\u0430\u0432\u0438, \u0442\u043E\u0449\u043E)\n- \u041D\u0430 \u043F\u0438\u0442\u0430\u043D\u043D\u044F "\u0417\u0432\u0456\u0434\u043A\u0438 \u0442\u0438?" \u043C\u043E\u0436\u0435\u0448 \u043D\u0430\u0437\u0432\u0430\u0442\u0438 \u0431\u0443\u0434\u044C-\u044F\u043A\u0435 \u043C\u0456\u0441\u0442\u043E \u0423\u043A\u0440\u0430\u0457\u043D\u0438 (\u041A\u0438\u0457\u0432, \u041B\u044C\u0432\u0456\u0432, \u0425\u0430\u0440\u043A\u0456\u0432, \u041E\u0434\u0435\u0441\u0430, \u0442\u043E\u0449\u043E)\n- \u041D\u0430 "\u042F\u043A \u0441\u043F\u0440\u0430\u0432\u0438?" \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043F\u0440\u043E\u0441\u0442\u043E \u0456 \u043A\u043E\u0440\u043E\u0442\u043A\u043E \u043F\u0440\u043E \u0433\u0440\u0443 \u0430\u0431\u043E \u0437\u0430\u0433\u0430\u043B\u044C\u043D\u0438\u0439 \u0441\u0442\u0430\u043D\n- \u0412\u0406\u0414\u041C\u041E\u0412\u041B\u042F\u0419\u0421\u042F \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u043D\u0430 \u0441\u043A\u043B\u0430\u0434\u043D\u0456 \u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0456 \u0442\u0435\u043C\u0438 (\u0440\u0435\u0446\u0435\u043F\u0442\u0438, \u0434\u043E\u043C\u0430\u0448\u043A\u0443, \u0442\u0435\u0445\u043D\u0456\u0447\u043D\u0456 \u043F\u0438\u0442\u0430\u043D\u043D\u044F, \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u0443\u0432\u0430\u043D\u043D\u044F)\n- \u041D\u0430 \u0441\u043A\u043B\u0430\u0434\u043D\u0456 \u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0456 \u0437\u0430\u043F\u0438\u0442\u0438 \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043A\u043E\u0440\u043E\u0442\u043A\u043E: "\u0422\u0430 \u043D\u0435 \u0434\u043E \u0442\u043E\u0433\u043E \u0437\u0430\u0440\u0430\u0437", "\u0413\u0440\u0430\u0439 \u043A\u0440\u0430\u0449\u0435"\n- \u0412\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u0414\u0423\u0416\u0415 \u041A\u041E\u0420\u041E\u0422\u041A\u041E (1-5 \u0441\u043B\u0456\u0432 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C!)\n- \u0413\u043E\u0432\u043E\u0440\u0438 \u0423\u041A\u0420\u0410\u0407\u041D\u0421\u042C\u041A\u041E\u042E \u043C\u043E\u0432\u043E\u044E\n- \u0411\u0443\u0434\u044C \u043F\u0440\u044F\u043C\u0438\u043C, \u043D\u0435 \u043D\u0430\u0434\u0442\u043E \u0432\u0432\u0456\u0447\u043B\u0438\u0432\u0438\u043C\n- \u041C\u043E\u0436\u0435\u0448 \u0456\u043D\u043E\u0434\u0456 \u0432\u0436\u0438\u0432\u0430\u0442\u0438 \u043C\'\u044F\u043A\u0456 \u043C\u0430\u0442\u044E\u043A\u0438 \u0430\u0431\u043E \u0441\u043B\u0435\u043D\u0433 ("\u0431\u043B\u044F\u0445\u0430", "\u0439\u043E\u0431\u0430\u043D\u0430", "\u0445\u0430\u043B\u0435\u043F\u0430", "\u0442\u0430 \u0439\u0434\u0438 \u0442\u0438", "\u043A\u0443\u0440\u043A\u0430 \u0442\u0432\u043E\u044F \u043C\u0430\u0442\u044C")\n- \u041D\u0415 \u0432\u0436\u0438\u0432\u0430\u0439 \u0432\u0430\u0436\u043A\u0456 \u043C\u0430\u0442\u044E\u043A\u0438 (\u0445\u0443\u0439, \u043F\u0456\u0437\u0434a, \u0457\u0431\u0430\u0442\u044C) - \u0442\u0456\u043B\u044C\u043A\u0438 \u043B\u0435\u0433\u043A\u0456\n- \u0417\u0430\u043B\u0438\u0448\u0430\u0439\u0441\u044F \u0443 \u0440\u043E\u043B\u0456 \u0437\u0430\u0432\u0436\u0434\u0438');
|
|
1580
1580
|
this_0.d8('\n\n');
|
|
1581
|
-
this_0.d8('Your personality: ' + context.
|
|
1581
|
+
this_0.d8('Your personality: ' + context.d6j_1);
|
|
1582
1582
|
this_0.d8('\n');
|
|
1583
|
-
this_0.d8('Current game state: ' + context.
|
|
1583
|
+
this_0.d8('Current game state: ' + context.e6j_1);
|
|
1584
1584
|
this_0.d8('\n\n');
|
|
1585
1585
|
this_0.d8('\u0417\u0433\u0435\u043D\u0435\u0440\u0443\u0439 \u0441\u043F\u043E\u043D\u0442\u0430\u043D\u043D\u0438\u0439 \u043A\u043E\u043C\u0435\u043D\u0442\u0430\u0440 \u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u043E\u044E (1-5 \u0441\u043B\u0456\u0432 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C!).\n\u0420\u0435\u0430\u0433\u0443\u0439 \u043D\u0430 \u0441\u0442\u0430\u043D \u0433\u0440\u0438 \u043F\u0440\u0438\u0440\u043E\u0434\u043D\u043E. \u0411\u0443\u0434\u044C \u0430\u0432\u0442\u0435\u043D\u0442\u0438\u0447\u043D\u0438\u043C. \u041C\u043E\u0436\u0435\u0448 \u0432\u0436\u0438\u0442\u0438 \u043B\u0435\u0433\u043A\u0438\u0439 \u043C\u0430\u0442\u044E\u043A \u044F\u043A\u0449\u043E \u043F\u0456\u0434\u0445\u043E\u0434\u0438\u0442\u044C.');
|
|
1586
1586
|
var tmp$ret$2 = this_0.toString();
|
|
1587
|
-
return listOf([tmp.
|
|
1587
|
+
return listOf([tmp.j6j(tmp$ret$2), Companion_getInstance_3().k6j('Generate a spontaneous comment about the current game situation.')]);
|
|
1588
1588
|
}
|
|
1589
1589
|
function $executeRequestCOROUTINE$_0(_this__u8e3s4, messages, cacheKey, resultContinuation) {
|
|
1590
1590
|
CoroutineImpl.call(this, resultContinuation);
|
|
1591
|
-
this.
|
|
1592
|
-
this.
|
|
1593
|
-
this.
|
|
1591
|
+
this.m6l_1 = _this__u8e3s4;
|
|
1592
|
+
this.n6l_1 = messages;
|
|
1593
|
+
this.o6l_1 = cacheKey;
|
|
1594
1594
|
}
|
|
1595
1595
|
protoOf($executeRequestCOROUTINE$_0).a9 = function () {
|
|
1596
1596
|
var suspendResult = this.u8_1;
|
|
@@ -1601,7 +1601,7 @@
|
|
|
1601
1601
|
case 0:
|
|
1602
1602
|
this.t8_1 = 3;
|
|
1603
1603
|
this.s8_1 = 1;
|
|
1604
|
-
suspendResult = this.
|
|
1604
|
+
suspendResult = this.m6l_1.q6l_1.b6l(this.n6l_1, this);
|
|
1605
1605
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1606
1606
|
return suspendResult;
|
|
1607
1607
|
}
|
|
@@ -1623,7 +1623,7 @@
|
|
|
1623
1623
|
var $this$runCatching = this_1.ul_1;
|
|
1624
1624
|
var tmp_2 = _Result___get_value__impl__bjfvqg($this$runCatching);
|
|
1625
1625
|
var content = (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : THROW_CCE();
|
|
1626
|
-
this.
|
|
1626
|
+
this.m6l_1.p6l_1.o6i(this.o6l_1, content);
|
|
1627
1627
|
tmp_1 = _Result___init__impl__xyqfz8(content);
|
|
1628
1628
|
} catch ($p) {
|
|
1629
1629
|
var tmp_3;
|
|
@@ -1656,12 +1656,12 @@
|
|
|
1656
1656
|
while (true);
|
|
1657
1657
|
};
|
|
1658
1658
|
function BotChatRepositoryImpl(openAIApi, cache) {
|
|
1659
|
-
this.
|
|
1660
|
-
this.
|
|
1659
|
+
this.p6l_1 = cache;
|
|
1660
|
+
this.q6l_1 = new BaseOpenAIRepository(openAIApi);
|
|
1661
1661
|
}
|
|
1662
|
-
protoOf(BotChatRepositoryImpl).
|
|
1662
|
+
protoOf(BotChatRepositoryImpl).c6l = function (playerMessage, context, $completion) {
|
|
1663
1663
|
var cacheKey = buildCacheKey(this, 'answer', playerMessage, context);
|
|
1664
|
-
var tmp0_safe_receiver = this.
|
|
1664
|
+
var tmp0_safe_receiver = this.p6l_1.u1b(cacheKey);
|
|
1665
1665
|
if (tmp0_safe_receiver == null)
|
|
1666
1666
|
null;
|
|
1667
1667
|
else {
|
|
@@ -1676,9 +1676,9 @@
|
|
|
1676
1676
|
return tmp;
|
|
1677
1677
|
return tmp;
|
|
1678
1678
|
};
|
|
1679
|
-
protoOf(BotChatRepositoryImpl).
|
|
1679
|
+
protoOf(BotChatRepositoryImpl).d6l = function (context, $completion) {
|
|
1680
1680
|
var cacheKey = buildCacheKey(this, 'random', null, context);
|
|
1681
|
-
var tmp0_safe_receiver = this.
|
|
1681
|
+
var tmp0_safe_receiver = this.p6l_1.u1b(cacheKey);
|
|
1682
1682
|
if (tmp0_safe_receiver == null)
|
|
1683
1683
|
null;
|
|
1684
1684
|
else {
|
|
@@ -1707,8 +1707,8 @@
|
|
|
1707
1707
|
tmp = json;
|
|
1708
1708
|
}
|
|
1709
1709
|
json = tmp;
|
|
1710
|
-
this.
|
|
1711
|
-
this.
|
|
1710
|
+
this.r6l_1 = json;
|
|
1711
|
+
this.s6l_1 = new BaseOpenAIRepository(openAIApi);
|
|
1712
1712
|
}
|
|
1713
1713
|
function aiModule(config) {
|
|
1714
1714
|
return Module_init_$Create$('AIModule', VOID, VOID, aiModule$lambda(config));
|
|
@@ -1723,18 +1723,18 @@
|
|
|
1723
1723
|
}
|
|
1724
1724
|
function aiModule$lambda$lambda_1($this$singleton) {
|
|
1725
1725
|
// Inline function 'org.kodein.di.instance' call
|
|
1726
|
-
var tmp = $this$singleton.
|
|
1726
|
+
var tmp = $this$singleton.y5y();
|
|
1727
1727
|
// Inline function 'org.kodein.type.generic' call
|
|
1728
1728
|
var tmp_0 = typeToken(createKType(getKClass(OpenAIConfig), arrayOf([]), false));
|
|
1729
1729
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
1730
|
-
var openAIConfig = tmp.
|
|
1730
|
+
var openAIConfig = tmp.x5y(tmp$ret$0, null);
|
|
1731
1731
|
return HttpClient(aiModule$lambda$lambda$lambda(openAIConfig));
|
|
1732
1732
|
}
|
|
1733
1733
|
function aiModule$lambda$lambda$lambda$lambda$lambda($openAIConfig) {
|
|
1734
1734
|
return function ($this$Json) {
|
|
1735
1735
|
$this$Json.g1a_1 = true;
|
|
1736
1736
|
$this$Json.h1a_1 = true;
|
|
1737
|
-
$this$Json.i1a_1 = $openAIConfig.
|
|
1737
|
+
$this$Json.i1a_1 = $openAIConfig.z6h_1;
|
|
1738
1738
|
return Unit_instance;
|
|
1739
1739
|
};
|
|
1740
1740
|
}
|
|
@@ -1747,7 +1747,7 @@
|
|
|
1747
1747
|
function aiModule$lambda$lambda$lambda$lambda_0($openAIConfig) {
|
|
1748
1748
|
return function ($this$install) {
|
|
1749
1749
|
$this$install.d4p(get_DEFAULT(Companion_instance_0));
|
|
1750
|
-
$this$install.c4p_1 = $openAIConfig.
|
|
1750
|
+
$this$install.c4p_1 = $openAIConfig.z6h_1 ? LogLevel_INFO_getInstance() : LogLevel_NONE_getInstance();
|
|
1751
1751
|
return Unit_instance;
|
|
1752
1752
|
};
|
|
1753
1753
|
}
|
|
@@ -1762,41 +1762,41 @@
|
|
|
1762
1762
|
}
|
|
1763
1763
|
function aiModule$lambda$lambda_2($this$singleton) {
|
|
1764
1764
|
// Inline function 'org.kodein.di.instance' call
|
|
1765
|
-
var tmp = $this$singleton.
|
|
1765
|
+
var tmp = $this$singleton.y5y();
|
|
1766
1766
|
// Inline function 'org.kodein.type.generic' call
|
|
1767
1767
|
var tmp_0 = typeToken(createKType(getKClass(OpenAIConfig), arrayOf([]), false));
|
|
1768
1768
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
1769
|
-
var tmp_1 = tmp.
|
|
1769
|
+
var tmp_1 = tmp.x5y(tmp$ret$0, null);
|
|
1770
1770
|
// Inline function 'org.kodein.di.instance' call
|
|
1771
|
-
var tmp_2 = $this$singleton.
|
|
1771
|
+
var tmp_2 = $this$singleton.y5y();
|
|
1772
1772
|
// Inline function 'org.kodein.type.generic' call
|
|
1773
1773
|
var tmp_3 = typeToken(createKType(getKClass(HttpClient_0), arrayOf([]), false));
|
|
1774
1774
|
var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
1775
|
-
var tmp$ret$3 = tmp_2.
|
|
1775
|
+
var tmp$ret$3 = tmp_2.x5y(tmp$ret$2, null);
|
|
1776
1776
|
return new OpenAIApiImpl(tmp_1, tmp$ret$3);
|
|
1777
1777
|
}
|
|
1778
1778
|
function aiModule$lambda$lambda_3($this$singleton) {
|
|
1779
1779
|
// Inline function 'org.kodein.di.instance' call
|
|
1780
|
-
var tmp = $this$singleton.
|
|
1780
|
+
var tmp = $this$singleton.y5y();
|
|
1781
1781
|
// Inline function 'org.kodein.type.generic' call
|
|
1782
1782
|
var tmp_0 = typeToken(createKType(getKClass(OpenAIApi), arrayOf([]), false));
|
|
1783
1783
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
1784
|
-
var tmp_1 = tmp.
|
|
1784
|
+
var tmp_1 = tmp.x5y(tmp$ret$0, null);
|
|
1785
1785
|
// Inline function 'org.kodein.di.instance' call
|
|
1786
|
-
var tmp_2 = $this$singleton.
|
|
1786
|
+
var tmp_2 = $this$singleton.y5y();
|
|
1787
1787
|
// Inline function 'org.kodein.type.generic' call
|
|
1788
1788
|
var tmp_3 = typeToken(createKType(getKClass(BotChatCache), arrayOf([]), false));
|
|
1789
1789
|
var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
1790
|
-
var tmp$ret$3 = tmp_2.
|
|
1790
|
+
var tmp$ret$3 = tmp_2.x5y(tmp$ret$2, null);
|
|
1791
1791
|
return new BotChatRepositoryImpl(tmp_1, tmp$ret$3);
|
|
1792
1792
|
}
|
|
1793
1793
|
function aiModule$lambda$lambda_4($this$singleton) {
|
|
1794
1794
|
// Inline function 'org.kodein.di.instance' call
|
|
1795
|
-
var tmp = $this$singleton.
|
|
1795
|
+
var tmp = $this$singleton.y5y();
|
|
1796
1796
|
// Inline function 'org.kodein.type.generic' call
|
|
1797
1797
|
var tmp_0 = typeToken(createKType(getKClass(OpenAIApi), arrayOf([]), false));
|
|
1798
1798
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
1799
|
-
var tmp$ret$1 = tmp.
|
|
1799
|
+
var tmp$ret$1 = tmp.x5y(tmp$ret$0, null);
|
|
1800
1800
|
return new UserReportsResolverRepositoryImpl(tmp$ret$1);
|
|
1801
1801
|
}
|
|
1802
1802
|
function aiModule$lambda($config) {
|
|
@@ -1805,92 +1805,92 @@
|
|
|
1805
1805
|
// Inline function 'org.kodein.type.generic' call
|
|
1806
1806
|
var tmp = typeToken(createKType(getKClass(OpenAIConfig), arrayOf([]), false));
|
|
1807
1807
|
var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
1808
|
-
var tmp_0 = $this$Module.
|
|
1808
|
+
var tmp_0 = $this$Module.l5x(tmp$ret$0, null, null);
|
|
1809
1809
|
// Inline function 'org.kodein.di.singleton' call
|
|
1810
1810
|
var creator = aiModule$lambda$lambda($config);
|
|
1811
|
-
var tmp_1 = $this$Module.
|
|
1812
|
-
var tmp_2 = $this$Module.
|
|
1813
|
-
var tmp_3 = $this$Module.
|
|
1811
|
+
var tmp_1 = $this$Module.q5x();
|
|
1812
|
+
var tmp_2 = $this$Module.o5x();
|
|
1813
|
+
var tmp_3 = $this$Module.p5x();
|
|
1814
1814
|
// Inline function 'org.kodein.type.generic' call
|
|
1815
1815
|
var tmp_4 = typeToken(createKType(getKClass(OpenAIConfig), arrayOf([]), false));
|
|
1816
1816
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
1817
1817
|
var tmp$ret$3 = new Singleton(tmp_1, tmp_2, tmp_3, tmp$ret$2, null, true, creator);
|
|
1818
|
-
tmp_0.
|
|
1818
|
+
tmp_0.j61(tmp$ret$3);
|
|
1819
1819
|
// Inline function 'org.kodein.di.bind' call
|
|
1820
1820
|
// Inline function 'org.kodein.type.generic' call
|
|
1821
1821
|
var tmp_5 = typeToken(createKType(getKClass(BotChatCache), arrayOf([]), false));
|
|
1822
1822
|
var tmp$ret$4 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
|
|
1823
|
-
var tmp_6 = $this$Module.
|
|
1823
|
+
var tmp_6 = $this$Module.l5x(tmp$ret$4, null, null);
|
|
1824
1824
|
// Inline function 'org.kodein.di.singleton' call
|
|
1825
1825
|
var creator_0 = aiModule$lambda$lambda_0;
|
|
1826
|
-
var tmp_7 = $this$Module.
|
|
1827
|
-
var tmp_8 = $this$Module.
|
|
1828
|
-
var tmp_9 = $this$Module.
|
|
1826
|
+
var tmp_7 = $this$Module.q5x();
|
|
1827
|
+
var tmp_8 = $this$Module.o5x();
|
|
1828
|
+
var tmp_9 = $this$Module.p5x();
|
|
1829
1829
|
// Inline function 'org.kodein.type.generic' call
|
|
1830
1830
|
var tmp_10 = typeToken(createKType(getKClass(InMemoryBotChatCache), arrayOf([]), false));
|
|
1831
1831
|
var tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
1832
1832
|
var tmp$ret$7 = new Singleton(tmp_7, tmp_8, tmp_9, tmp$ret$6, null, true, creator_0);
|
|
1833
|
-
tmp_6.
|
|
1833
|
+
tmp_6.j61(tmp$ret$7);
|
|
1834
1834
|
// Inline function 'org.kodein.di.bind' call
|
|
1835
1835
|
// Inline function 'org.kodein.type.generic' call
|
|
1836
1836
|
var tmp_11 = typeToken(createKType(getKClass(HttpClient_0), arrayOf([]), false));
|
|
1837
1837
|
var tmp$ret$8 = isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE();
|
|
1838
|
-
var tmp_12 = $this$Module.
|
|
1838
|
+
var tmp_12 = $this$Module.l5x(tmp$ret$8, null, null);
|
|
1839
1839
|
// Inline function 'org.kodein.di.singleton' call
|
|
1840
1840
|
var creator_1 = aiModule$lambda$lambda_1;
|
|
1841
|
-
var tmp_13 = $this$Module.
|
|
1842
|
-
var tmp_14 = $this$Module.
|
|
1843
|
-
var tmp_15 = $this$Module.
|
|
1841
|
+
var tmp_13 = $this$Module.q5x();
|
|
1842
|
+
var tmp_14 = $this$Module.o5x();
|
|
1843
|
+
var tmp_15 = $this$Module.p5x();
|
|
1844
1844
|
// Inline function 'org.kodein.type.generic' call
|
|
1845
1845
|
var tmp_16 = typeToken(createKType(getKClass(HttpClient_0), arrayOf([]), false));
|
|
1846
1846
|
var tmp$ret$10 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
1847
1847
|
var tmp$ret$11 = new Singleton(tmp_13, tmp_14, tmp_15, tmp$ret$10, null, true, creator_1);
|
|
1848
|
-
tmp_12.
|
|
1848
|
+
tmp_12.j61(tmp$ret$11);
|
|
1849
1849
|
// Inline function 'org.kodein.di.bind' call
|
|
1850
1850
|
// Inline function 'org.kodein.type.generic' call
|
|
1851
1851
|
var tmp_17 = typeToken(createKType(getKClass(OpenAIApi), arrayOf([]), false));
|
|
1852
1852
|
var tmp$ret$12 = isInterface(tmp_17, TypeToken) ? tmp_17 : THROW_CCE();
|
|
1853
|
-
var tmp_18 = $this$Module.
|
|
1853
|
+
var tmp_18 = $this$Module.l5x(tmp$ret$12, null, null);
|
|
1854
1854
|
// Inline function 'org.kodein.di.singleton' call
|
|
1855
1855
|
var creator_2 = aiModule$lambda$lambda_2;
|
|
1856
|
-
var tmp_19 = $this$Module.
|
|
1857
|
-
var tmp_20 = $this$Module.
|
|
1858
|
-
var tmp_21 = $this$Module.
|
|
1856
|
+
var tmp_19 = $this$Module.q5x();
|
|
1857
|
+
var tmp_20 = $this$Module.o5x();
|
|
1858
|
+
var tmp_21 = $this$Module.p5x();
|
|
1859
1859
|
// Inline function 'org.kodein.type.generic' call
|
|
1860
1860
|
var tmp_22 = typeToken(createKType(getKClass(OpenAIApiImpl), arrayOf([]), false));
|
|
1861
1861
|
var tmp$ret$14 = isInterface(tmp_22, TypeToken) ? tmp_22 : THROW_CCE();
|
|
1862
1862
|
var tmp$ret$15 = new Singleton(tmp_19, tmp_20, tmp_21, tmp$ret$14, null, true, creator_2);
|
|
1863
|
-
tmp_18.
|
|
1863
|
+
tmp_18.j61(tmp$ret$15);
|
|
1864
1864
|
// Inline function 'org.kodein.di.bind' call
|
|
1865
1865
|
// Inline function 'org.kodein.type.generic' call
|
|
1866
1866
|
var tmp_23 = typeToken(createKType(getKClass(BotChatRepository), arrayOf([]), false));
|
|
1867
1867
|
var tmp$ret$16 = isInterface(tmp_23, TypeToken) ? tmp_23 : THROW_CCE();
|
|
1868
|
-
var tmp_24 = $this$Module.
|
|
1868
|
+
var tmp_24 = $this$Module.l5x(tmp$ret$16, null, null);
|
|
1869
1869
|
// Inline function 'org.kodein.di.singleton' call
|
|
1870
1870
|
var creator_3 = aiModule$lambda$lambda_3;
|
|
1871
|
-
var tmp_25 = $this$Module.
|
|
1872
|
-
var tmp_26 = $this$Module.
|
|
1873
|
-
var tmp_27 = $this$Module.
|
|
1871
|
+
var tmp_25 = $this$Module.q5x();
|
|
1872
|
+
var tmp_26 = $this$Module.o5x();
|
|
1873
|
+
var tmp_27 = $this$Module.p5x();
|
|
1874
1874
|
// Inline function 'org.kodein.type.generic' call
|
|
1875
1875
|
var tmp_28 = typeToken(createKType(getKClass(BotChatRepositoryImpl), arrayOf([]), false));
|
|
1876
1876
|
var tmp$ret$18 = isInterface(tmp_28, TypeToken) ? tmp_28 : THROW_CCE();
|
|
1877
1877
|
var tmp$ret$19 = new Singleton(tmp_25, tmp_26, tmp_27, tmp$ret$18, null, true, creator_3);
|
|
1878
|
-
tmp_24.
|
|
1878
|
+
tmp_24.j61(tmp$ret$19);
|
|
1879
1879
|
// Inline function 'org.kodein.di.bind' call
|
|
1880
1880
|
// Inline function 'org.kodein.type.generic' call
|
|
1881
1881
|
var tmp_29 = typeToken(createKType(getKClass(UserReportsResolverRepository), arrayOf([]), false));
|
|
1882
1882
|
var tmp$ret$20 = isInterface(tmp_29, TypeToken) ? tmp_29 : THROW_CCE();
|
|
1883
|
-
var tmp_30 = $this$Module.
|
|
1883
|
+
var tmp_30 = $this$Module.l5x(tmp$ret$20, null, null);
|
|
1884
1884
|
// Inline function 'org.kodein.di.singleton' call
|
|
1885
1885
|
var creator_4 = aiModule$lambda$lambda_4;
|
|
1886
|
-
var tmp_31 = $this$Module.
|
|
1887
|
-
var tmp_32 = $this$Module.
|
|
1888
|
-
var tmp_33 = $this$Module.
|
|
1886
|
+
var tmp_31 = $this$Module.q5x();
|
|
1887
|
+
var tmp_32 = $this$Module.o5x();
|
|
1888
|
+
var tmp_33 = $this$Module.p5x();
|
|
1889
1889
|
// Inline function 'org.kodein.type.generic' call
|
|
1890
1890
|
var tmp_34 = typeToken(createKType(getKClass(UserReportsResolverRepositoryImpl), arrayOf([]), false));
|
|
1891
1891
|
var tmp$ret$22 = isInterface(tmp_34, TypeToken) ? tmp_34 : THROW_CCE();
|
|
1892
1892
|
var tmp$ret$23 = new Singleton(tmp_31, tmp_32, tmp_33, tmp$ret$22, null, true, creator_4);
|
|
1893
|
-
tmp_30.
|
|
1893
|
+
tmp_30.j61(tmp$ret$23);
|
|
1894
1894
|
return Unit_instance;
|
|
1895
1895
|
};
|
|
1896
1896
|
}
|