forked from phoenix/litellm-mirror
Merge pull request #4086 from BerriAI/litellm_sdk_tool_calling_fic
[Fix] Litellm sdk - allow ChatCompletionMessageToolCall, and Function to be used as dict
This commit is contained in:
commit
39bbc5d8ac
2 changed files with 32 additions and 2 deletions
|
@ -366,8 +366,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