From 78fdaa96d7f87c88ab5356173edd86f725c6f4a4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 5 Feb 2024 05:43:12 +0000 Subject: [PATCH] feat: set verbose to false (#131) * feat: set verbose to false Signed-off-by: SuZhou-Joe * feat: update doc Signed-off-by: SuZhou-Joe --------- Signed-off-by: SuZhou-Joe (cherry picked from commit 485138c2e7f4bd194b02d65fc3468ca18cf274b3) Signed-off-by: github-actions[bot] --- .../dashboards-assistant.release-notes-2.12.0.0.md | 3 +++ server/services/chat/olly_chat_service.test.ts | 8 ++++---- server/services/chat/olly_chat_service.ts | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/release-notes/dashboards-assistant.release-notes-2.12.0.0.md b/release-notes/dashboards-assistant.release-notes-2.12.0.0.md index 808cb440..c3b6666b 100644 --- a/release-notes/dashboards-assistant.release-notes-2.12.0.0.md +++ b/release-notes/dashboards-assistant.release-notes-2.12.0.0.md @@ -10,3 +10,6 @@ Compatible with OpenSearch and OpenSearch Dashboards Version 2.12.0 - Add regenerating interaction ([#58](https://github.com/opensearch-project/dashboards-assistant/pull/58))([11e5779](https://github.com/opensearch-project/dashboards-assistant/commit/11e5779)) - Support give feedback on interaction ([9c6cb29](https://github.com/opensearch-project/dashboards-assistant/commit/9c6cb29))([4ff6726](https://github.com/opensearch-project/dashboards-assistant/commit/4ff6726)) - Support save conversation to notebook ([3010362](https://github.com/opensearch-project/dashboards-assistant/commit/3010362))([#93](https://github.com/opensearch-project/dashboards-assistant/pull/93)) + +### Feature +- Set verbose to false ([#131](https://github.com/opensearch-project/dashboards-assistant/pull/131)) \ No newline at end of file diff --git a/server/services/chat/olly_chat_service.test.ts b/server/services/chat/olly_chat_service.test.ts index a81ce7a5..333e50ae 100644 --- a/server/services/chat/olly_chat_service.test.ts +++ b/server/services/chat/olly_chat_service.test.ts @@ -80,7 +80,7 @@ describe('OllyChatService', () => { "parameters": Object { "memory_id": "conversationId", "question": "content", - "verbose": true, + "verbose": false, }, }, "method": "POST", @@ -176,7 +176,7 @@ describe('OllyChatService', () => { "parameters": Object { "memory_id": "conversationId", "regenerate_interaction_id": "interactionId", - "verbose": true, + "verbose": false, }, }, "method": "POST", @@ -294,7 +294,7 @@ describe('OllyChatService', () => { "body": Object { "parameters": Object { "question": "content", - "verbose": true, + "verbose": false, }, }, "method": "POST", @@ -316,7 +316,7 @@ describe('OllyChatService', () => { "body": Object { "parameters": Object { "question": "content", - "verbose": true, + "verbose": false, }, }, "method": "POST", diff --git a/server/services/chat/olly_chat_service.ts b/server/services/chat/olly_chat_service.ts index 4458d90c..aa3f871a 100644 --- a/server/services/chat/olly_chat_service.ts +++ b/server/services/chat/olly_chat_service.ts @@ -146,7 +146,7 @@ export class OllyChatService implements ChatService { const parametersPayload: Pick = { question: input.content, - verbose: true, + verbose: false, }; if (conversationId) { @@ -167,7 +167,7 @@ export class OllyChatService implements ChatService { > = { memory_id: conversationId, regenerate_interaction_id: interactionId, - verbose: true, + verbose: false, }; return await this.requestAgentRun(parametersPayload);