Skip to content

Commit

Permalink
Update prepare_system_prompt function call
Browse files Browse the repository at this point in the history
  • Loading branch information
FloRul committed Mar 20, 2024
1 parent e0fd726 commit d7fdfab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lambdas/inference/src/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def lambda_handler(event, context):
chat_history = json.loads(history.get(limit=5))

# prepare the prompt
system_prompt = prepare_system_prompt(query, docs, source)
system_prompt = prepare_system_prompt(docs, source)
user_message = query
response = invoke_model(
system_prompt=system_prompt,
Expand Down Expand Up @@ -172,7 +172,7 @@ def lambda_handler(event, context):
print(e)
return {
"statusCode": 500,
"body": json.dumps(e),
"body": json.dumps(str(e)),
"headers": HEADERS,
}

Expand Down

0 comments on commit d7fdfab

Please sign in to comment.