Skip to content

Commit d99aee6

Browse files
committed
update update authorizatio Bearer
1 parent b494319 commit d99aee6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

aaq/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def send_feedback_task_v2(feedback_secret_key, query_id, content_id=None, **kwar
6262

6363
url = urljoin(settings.AAQ_V2_API_URL, path)
6464
headers = {
65-
"Authorization": settings.AAQ_V2_AUTH,
65+
"Authorization": f"Bearer {settings.AAQ_V2_AUTH}",
6666
"Content-Type": "application/json",
6767
}
6868
response = requests.post(url, json=data, headers=headers)

aaq/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
def check_urgency_v2(message_text):
1010
url = urllib.parse.urljoin(settings.AAQ_V2_API_URL, "check-urgency")
1111
headers = {
12-
"Authorization": settings.AAQ_V2_AUTH,
12+
"Authorization": f"Bearer {settings.AAQ_V2_AUTH}",
1313
"Content-Type": "application/json",
1414
}
1515

@@ -27,7 +27,7 @@ def search(query_text, generate_llm_response, query_metadata):
2727
"query_metadata": query_metadata,
2828
}
2929
headers = {
30-
"Authorization": settings.AAQ_V2_AUTH,
30+
"Authorization": f"Bearer {settings.AAQ_V2_AUTH}",
3131
"Content-Type": "application/json",
3232
}
3333

0 commit comments

Comments
 (0)