From 183310b1b75db7c129bf884fc32abcda853fcf2b Mon Sep 17 00:00:00 2001 From: Oleksii-Klimov <133792808+Oleksii-Klimov@users.noreply.github.com> Date: Thu, 14 Dec 2023 18:21:44 +0000 Subject: [PATCH] feat: do not propagate jwt to model (#43) Do not propagate jwt to model. --- aidial_assistant/application/assistant_application.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/aidial_assistant/application/assistant_application.py b/aidial_assistant/application/assistant_application.py index d4a5598..34bb975 100644 --- a/aidial_assistant/application/assistant_application.py +++ b/aidial_assistant/application/assistant_application.py @@ -5,7 +5,6 @@ from aidial_sdk.chat_completion.base import ChatCompletion from aidial_sdk.chat_completion.request import Addon, Message, Request, Role from aidial_sdk.chat_completion.response import Response -from aiohttp import hdrs from aidial_assistant.application.addons_dialogue_limiter import ( AddonsDialogueLimiter, @@ -47,9 +46,6 @@ def _get_request_args(request: Request) -> dict[str, str]: "api_version": request.api_version, "api_key": request.api_key, "user": request.user, - "headers": None - if request.jwt is None - else {hdrs.AUTHORIZATION: request.jwt}, } return {k: v for k, v in args.items() if v is not None}