feat - allow ChatCompletionMessageToolCall, and Function to be used as dict

This commit is contained in:
Ishaan Jaff 2024-06-08 19:47:31 -07:00
parent 6f40fc6a81
commit af61eff8e3
2 changed files with 32 additions and 2 deletions

View file

@ -364,8 +364,6 @@ class OpenTelemetry(CustomLogger):
)
message = choice.get("message")
if not isinstance(message, dict):
message = message.dict()
tool_calls = message.get("tool_calls")
if tool_calls:
span.set_attribute(