Skip to content

Commit 8bf79bd

Browse files
author
Liudmila Molkova
committed
up
1 parent 915f09e commit 8bf79bd

File tree

1 file changed

+6
-6
lines changed
  • instrumentation/opentelemetry-instrumentation-openai-v2/src/opentelemetry/instrumentation/openai_v2

1 file changed

+6
-6
lines changed

instrumentation/opentelemetry-instrumentation-openai-v2/src/opentelemetry/instrumentation/openai_v2/utils.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ def extract_tool_calls(item, capture_content):
6969
calls = []
7070
for tool_call in tool_calls:
7171
tool_call_dict = {}
72-
id = get_property_value(tool_call, "id")
73-
if id:
74-
tool_call_dict["id"] = id
72+
call_id = get_property_value(tool_call, "id")
73+
if call_id:
74+
tool_call_dict["id"] = call_id
7575

76-
type = get_property_value(tool_call, "type")
77-
if type:
78-
tool_call_dict["type"] = type
76+
tool_type = get_property_value(tool_call, "type")
77+
if tool_type:
78+
tool_call_dict["type"] = tool_type
7979

8080
func = get_property_value(tool_call, "function")
8181
if func:

0 commit comments

Comments
 (0)