Skip to content

Commit

Permalink
Merge pull request #770 from Mirascope/fix-litellm-tools
Browse files Browse the repository at this point in the history
fix: issue with litellm tool construction
  • Loading branch information
willbakst authored Jan 17, 2025
2 parents 0111863 + cab76fc commit ee0a82c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mirascope/core/openai/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def from_tool_call(
tool_call: The OpenAI tool call from which to construct this tool instance.
allow_partial: Whether to allow partial JSON data.
"""
model_json = {"tool_call": tool_call}
model_json = {"tool_call": tool_call.model_dump()}
if args := tool_call.function.arguments:
model_json |= cls._dict_from_json(args, allow_partial)
if allow_partial:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "mirascope"
version = "1.15.0"
version = "1.15.1"
description = "LLM abstractions that aren't obstructions"
readme = "README.md"
license = { file = "LICENSE" }
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ee0a82c

Please sign in to comment.