Skip to content

Commit ee7b665

Browse files
committed
more minor fixes
1 parent 9c88101 commit ee7b665

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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)