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:
Ishaan Jaff 2024-06-08 20:48:54 -07:00 committed by GitHub
commit 39bbc5d8ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 32 additions and 2 deletions

View file

@ -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(