From c035e3c7c6f896ff2c0c269f7a93a034a70cd9e9 Mon Sep 17 00:00:00 2001 From: Mousumi Pal Date: Tue, 22 Oct 2024 18:59:07 +0530 Subject: [PATCH] Refactor: Remove source_id from payload --- extensions/slack-bot/app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extensions/slack-bot/app.py b/extensions/slack-bot/app.py index c29205db..d4f522fd 100644 --- a/extensions/slack-bot/app.py +++ b/extensions/slack-bot/app.py @@ -42,7 +42,6 @@ async def generate_answer(question: str, messages: list, conversation_id: str | "api_key": DOCSGPT_API_KEY, "history": messages, "conversation_id": conversation_id, - "source_id": None } headers = { "Content-Type": "application/json; charset=utf-8" @@ -73,7 +72,7 @@ async def message_docs(message, say): ) docs_gpt_channel_id = encode_conversation_id(thread_ts) - print('Id ', docs_gpt_channel_id) + # Get response from DocsGPT response = await generate_answer(user_query,[], docs_gpt_channel_id) answer = convert_to_slack_markdown(response['answer'])