Skip to content

Commit

Permalink
update update authorizatio Bearer
Browse files Browse the repository at this point in the history
  • Loading branch information
Hlamallama committed Sep 4, 2024
1 parent b494319 commit d99aee6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aaq/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def send_feedback_task_v2(feedback_secret_key, query_id, content_id=None, **kwar

url = urljoin(settings.AAQ_V2_API_URL, path)
headers = {
"Authorization": settings.AAQ_V2_AUTH,
"Authorization": f"Bearer {settings.AAQ_V2_AUTH}",
"Content-Type": "application/json",
}
response = requests.post(url, json=data, headers=headers)
Expand Down
4 changes: 2 additions & 2 deletions aaq/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
def check_urgency_v2(message_text):
url = urllib.parse.urljoin(settings.AAQ_V2_API_URL, "check-urgency")
headers = {
"Authorization": settings.AAQ_V2_AUTH,
"Authorization": f"Bearer {settings.AAQ_V2_AUTH}",
"Content-Type": "application/json",
}

Expand All @@ -27,7 +27,7 @@ def search(query_text, generate_llm_response, query_metadata):
"query_metadata": query_metadata,
}
headers = {
"Authorization": settings.AAQ_V2_AUTH,
"Authorization": f"Bearer {settings.AAQ_V2_AUTH}",
"Content-Type": "application/json",
}

Expand Down

0 comments on commit d99aee6

Please sign in to comment.