Skip to content

Commit

Permalink
fix flakes
Browse files Browse the repository at this point in the history
  • Loading branch information
novaturient95 committed Sep 18, 2024
1 parent 9267c87 commit b9d4d51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,15 @@ def setup_scoring_client(
if endpoint_type is EndpointType.Null:
get_logger().info("Using null endpoint scoring client.")
return _setup_null_endpoint_scoring_client(
configuration=configuration,
tally_handler=tally_handler)
configuration=configuration,
tally_handler=tally_handler)

get_logger().info("Using MIR scoring client.")
return _setup_mir_scoring_client(
configuration=configuration,
header_provider=header_provider,
tally_handler=tally_handler)


def _get_additional_headers(self, configuration):
if configuration.additional_headers is None:
headers = {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def format_output(self, results: "list[ScoringResult]", batch_size_per_request:

def __get_request_id(self, scoring_request: ScoringResult):
return (
scoring_request.response_headers.get("x-request-id", None)
scoring_request.response_headers.get("x-request-id", "")
if scoring_request.response_headers is not None
else None
)
Expand Down

0 comments on commit b9d4d51

Please sign in to comment.