Skip to content

Commit

Permalink
Remove commented code for preparing Lex response
Browse files Browse the repository at this point in the history
  • Loading branch information
FloRul committed Feb 9, 2024
1 parent 817889f commit bc6085e
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions inference/src/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
{
Expand Down

0 comments on commit bc6085e

Please sign in to comment.