Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
slreznit authored Aug 20, 2024
1 parent 498dd4d commit 3f3289c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,9 @@ def prepare_model_args(request_body, request_headers):
user_json = None
if (MS_DEFENDER_ENABLED):
authenticated_user_details = get_authenticated_user_details(request_headers)
conversation_id = request_body.get("conversation_id", None)
user_json = get_msdefender_user_json(authenticated_user_details, request_headers, conversation_id)
conversation_id = request_body.get("conversation_id", None)
application_name = app_settings.ui.title
user_json = get_msdefender_user_json(authenticated_user_details, request_headers, conversation_id, application_name)

model_args = {
"messages": messages,
Expand Down

0 comments on commit 3f3289c

Please sign in to comment.