From bc6085e17a4486568971f5ed8f25aeb309293e37 Mon Sep 17 00:00:00 2001 From: FloRul Date: Fri, 9 Feb 2024 10:10:40 -0500 Subject: [PATCH] Remove commented code for preparing Lex response --- inference/src/index.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/inference/src/index.py b/inference/src/index.py index 496d8d4..226931e 100644 --- a/inference/src/index.py +++ b/inference/src/index.py @@ -73,17 +73,6 @@ def prepare_prompt(query: str, docs: list, history: list): raise e -# def prepare_lex_response(assistant_message: str, intent: str): -# return { -# "sessionState": { -# "dialogAction": {"type": "ElicitIntent"}, -# "intent": {"name": intent, "state": "InProgress"}, -# }, -# "messages": [{"contentType": "PlainText", "content": assistant_message}], -# "requestAttributes": {}, -# } - - def invoke_model(prompt: str, max_tokens: int, temperature: float, top_p: float): body = json.dumps( {