supercompat 2.26.0 → 2.28.0
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/dist/index.cjs +11 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2468,19 +2468,13 @@ var togetherClientAdapter = function(param) {
|
|
|
2468
2468
|
};
|
|
2469
2469
|
// src/adapters/client/googleClientAdapter/models/get.ts
|
|
2470
2470
|
var models9 = [
|
|
2471
|
+
"gemini-2.5-flash-preview-04-17",
|
|
2471
2472
|
"gemini-2.5-pro-preview-03-25",
|
|
2472
|
-
"gemini-2.5-pro-exp-03-25",
|
|
2473
|
-
"gemini-2.0-flash-exp",
|
|
2474
2473
|
"gemini-2.0-flash",
|
|
2475
|
-
"gemini-2.0-flash-lite
|
|
2474
|
+
"gemini-2.0-flash-lite",
|
|
2476
2475
|
"gemini-1.5-flash",
|
|
2477
2476
|
"gemini-1.5-flash-8b",
|
|
2478
|
-
"gemini-1.5-pro"
|
|
2479
|
-
"gemma-3-27b-it",
|
|
2480
|
-
"gemma-3-12b-it",
|
|
2481
|
-
"gemma-3-4b-it",
|
|
2482
|
-
"text-embedding-004",
|
|
2483
|
-
"aqa"
|
|
2477
|
+
"gemini-1.5-pro"
|
|
2484
2478
|
];
|
|
2485
2479
|
var get7 = function(param) {
|
|
2486
2480
|
var google = param.google;
|
|
@@ -3941,7 +3935,7 @@ var get10 = function(param) {
|
|
|
3941
3935
|
var prisma = param.prisma;
|
|
3942
3936
|
return /*#__PURE__*/ function() {
|
|
3943
3937
|
var _ref = _async_to_generator(function(urlString) {
|
|
3944
|
-
var _this, url, _url_pathname_match, threadId, _ref, limit, order, after, messages3, _id;
|
|
3938
|
+
var _this, url, _url_pathname_match, threadId, _ref, limit, order, after, pageSize, messagesPlusOne, messages3, _id;
|
|
3945
3939
|
return _ts_generator(this, function(_state) {
|
|
3946
3940
|
switch(_state.label){
|
|
3947
3941
|
case 0:
|
|
@@ -3951,25 +3945,27 @@ var get10 = function(param) {
|
|
|
3951
3945
|
limit: "20",
|
|
3952
3946
|
order: "desc"
|
|
3953
3947
|
}, Object.fromEntries(url.searchParams)), limit = _ref.limit, order = _ref.order, after = _ref.after;
|
|
3948
|
+
pageSize = parseInt(limit);
|
|
3954
3949
|
return [
|
|
3955
3950
|
4,
|
|
3956
3951
|
prisma.message.findMany(_object_spread({
|
|
3957
3952
|
where: {
|
|
3958
3953
|
threadId: threadId
|
|
3959
3954
|
},
|
|
3960
|
-
take:
|
|
3955
|
+
take: pageSize + 1,
|
|
3961
3956
|
orderBy: {
|
|
3962
3957
|
createdAt: order
|
|
3963
3958
|
}
|
|
3964
|
-
}, after
|
|
3959
|
+
}, after && {
|
|
3965
3960
|
skip: 1,
|
|
3966
3961
|
cursor: {
|
|
3967
3962
|
id: after
|
|
3968
3963
|
}
|
|
3969
|
-
}
|
|
3964
|
+
}))
|
|
3970
3965
|
];
|
|
3971
3966
|
case 1:
|
|
3972
|
-
|
|
3967
|
+
messagesPlusOne = _state.sent();
|
|
3968
|
+
messages3 = messagesPlusOne.slice(0, pageSize);
|
|
3973
3969
|
return [
|
|
3974
3970
|
2,
|
|
3975
3971
|
new Response(JSON.stringify({
|
|
@@ -3979,7 +3975,7 @@ var get10 = function(param) {
|
|
|
3979
3975
|
});
|
|
3980
3976
|
}),
|
|
3981
3977
|
hasNextPage: function() {
|
|
3982
|
-
return
|
|
3978
|
+
return messagesPlusOne.length > pageSize;
|
|
3983
3979
|
},
|
|
3984
3980
|
last_id: (_id = (_this = (0, import_radash7.last)(messages3)) === null || _this === void 0 ? void 0 : _this.id) !== null && _id !== void 0 ? _id : null
|
|
3985
3981
|
}), {
|