Skip to content

Commit 70e1308

Browse files
committed
more minor fixes
1 parent 9c88101 commit 70e1308

File tree

1 file changed

+2
-2
lines changed
  • instrumentation/opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore/extensions

1 file changed

+2
-2
lines changed

instrumentation/opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore/extensions/bedrock.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
ConverseStreamWrapper,
3232
InvokeModelWithResponseStreamWrapper,
3333
_Choice,
34+
estimate_token_count,
3435
genai_capture_message_content,
3536
message_to_event,
36-
estimate_token_count,
3737
)
3838
from opentelemetry.instrumentation.botocore.extensions.types import (
3939
_AttributeMapT,
@@ -361,7 +361,6 @@ def _set_if_not_none(attributes, key, value):
361361

362362
def _get_request_messages(self):
363363
"""Extracts and normalize system and user / assistant messages"""
364-
input_text = None
365364
if system := self._call_context.params.get("system", []):
366365
system_messages = [{"role": "system", "content": system}]
367366
else:
@@ -397,6 +396,7 @@ def _get_request_messages(self):
397396

398397
return system_messages + messages
399398

399+
# pylint: disable=no-self-use
400400
def _get_messages_from_input_text(
401401
self, decoded_body: dict[str, Any], input_name: str
402402
):

0 commit comments

Comments
 (0)