Skip to content

Commit

Permalink
Do not propagate jwt to model.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksii-Klimov committed Dec 14, 2023
1 parent 88881af commit 4f040d4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions aidial_assistant/application/assistant_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from aidial_sdk.chat_completion.base import ChatCompletion
from aidial_sdk.chat_completion.request import Addon, Request
from aidial_sdk.chat_completion.response import Response
from aiohttp import hdrs
from openai import InvalidRequestError, OpenAIError

from aidial_assistant.application.args import parse_args
Expand Down Expand Up @@ -43,9 +42,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}
Expand Down

0 comments on commit 4f040d4

Please sign in to comment.