mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
feat - allow ChatCompletionMessageToolCall, and Function to be used as dict
This commit is contained in:
parent
6f40fc6a81
commit
af61eff8e3
2 changed files with 32 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue