joye-backend-utility 8.2.8 → 8.2.9
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.
|
@@ -80,6 +80,22 @@ const OrganizationUserAttrPermission = new mongoose_1.Schema({
|
|
|
80
80
|
type: String,
|
|
81
81
|
required: false,
|
|
82
82
|
},
|
|
83
|
+
/**
|
|
84
|
+
* Max user messages in one chat. Used before platform maxTurnsPerChat, then the code default.
|
|
85
|
+
* Unset inherits. 0 means no user messages.
|
|
86
|
+
*/
|
|
87
|
+
maxTurnsPerChat: {
|
|
88
|
+
type: Number,
|
|
89
|
+
required: false,
|
|
90
|
+
},
|
|
91
|
+
/**
|
|
92
|
+
* Max chat sessions per user per calendar day. Used before platform maxChatsPerDay, then the code default.
|
|
93
|
+
* Unset inherits. 0 means no new chats.
|
|
94
|
+
*/
|
|
95
|
+
d: {
|
|
96
|
+
type: Number,
|
|
97
|
+
required: false,
|
|
98
|
+
},
|
|
83
99
|
// Sample data
|
|
84
100
|
/* aiModels: {
|
|
85
101
|
"brew": "claude-sonnet-4-20250514",
|
package/dist/schema/platform.js
CHANGED
|
@@ -48,6 +48,22 @@ const Platform = new mongoose_1.Schema({
|
|
|
48
48
|
type: String,
|
|
49
49
|
required: false,
|
|
50
50
|
},
|
|
51
|
+
/**
|
|
52
|
+
* Max user messages in one chat. Used when the tenant has no maxTurnsPerChat.
|
|
53
|
+
* Unset inherits the code default. 0 means no user messages.
|
|
54
|
+
*/
|
|
55
|
+
maxTurnsPerChat: {
|
|
56
|
+
type: Number,
|
|
57
|
+
required: false,
|
|
58
|
+
},
|
|
59
|
+
/**
|
|
60
|
+
* Max chat sessions per user per calendar day. Used when the tenant has no maxChatsPerDay.
|
|
61
|
+
* Unset inherits the code default. 0 means no new chats.
|
|
62
|
+
*/
|
|
63
|
+
maxChatsPerDay: {
|
|
64
|
+
type: Number,
|
|
65
|
+
required: false,
|
|
66
|
+
},
|
|
51
67
|
// Sample data
|
|
52
68
|
/* aiModels: {
|
|
53
69
|
"brew": "claude-sonnet-4-20250514",
|