@tiledesk/tiledesk-server 2.8.6 → 2.8.8
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/routes/kb.js +2 -1
- package/routes/project.js +4 -0
package/CHANGELOG.md
CHANGED
@@ -5,6 +5,12 @@
|
|
5
5
|
🚀 IN PRODUCTION 🚀
|
6
6
|
(https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.77)
|
7
7
|
|
8
|
+
# 2.8.8
|
9
|
+
- Changed default prompt for kb q&a
|
10
|
+
|
11
|
+
# 2.8.7
|
12
|
+
- Update project update endpoint with agent chats only function
|
13
|
+
|
8
14
|
# 2.8.6
|
9
15
|
- Bug fix: token count was incremented in action preview and kb preview even with a private key in integration
|
10
16
|
|
package/package.json
CHANGED
package/routes/kb.js
CHANGED
@@ -41,7 +41,8 @@ let default_preview_settings = {
|
|
41
41
|
context: null
|
42
42
|
}
|
43
43
|
|
44
|
-
let default_context = "Answer if and ONLY if the answer is contained in the context provided. If the answer is not contained in the context provided ALWAYS answer with <NOANS>\n{context}"
|
44
|
+
//let default_context = "Answer if and ONLY if the answer is contained in the context provided. If the answer is not contained in the context provided ALWAYS answer with <NOANS>\n{context}"
|
45
|
+
let default_context = "You are an helpful assistant for question-answering tasks.\nUse ONLY the following pieces of retrieved context to answer the question.\nIf you don't know the answer, just say that you don't know.\nIf none of the retrieved context answer the question, add this word to the end <NOANS>\n\n{context}";
|
45
46
|
|
46
47
|
/**
|
47
48
|
* ****************************************
|
package/routes/project.js
CHANGED
@@ -419,6 +419,10 @@ router.put('/:projectid', [passport.authenticate(['basic', 'jwt'], { session: fa
|
|
419
419
|
if (req.body["settings.automatic_idle_chats"]!=undefined) {
|
420
420
|
update["settings.automatic_idle_chats"] = req.body["settings.automatic_idle_chats"];
|
421
421
|
}
|
422
|
+
|
423
|
+
if (req.body["settings.current_agent_my_chats_only"]!=undefined) {
|
424
|
+
update["settings.current_agent_my_chats_only"] = req.body["settings.current_agent_my_chats_only"];
|
425
|
+
}
|
422
426
|
|
423
427
|
if (req.body.widget!=undefined) {
|
424
428
|
update.widget = req.body.widget;
|