mirror of
https://github.com/cpacker/MemGPT.git
synced 2025-06-03 04:30:22 +00:00
fix: tool_name unreachable bug (#1803)
This commit is contained in:
parent
19aea1d724
commit
df2ae9dd1c
@ -56,6 +56,9 @@ class GoogleAIClient(LLMClientBase):
|
||||
tool_names = [t.function.name for t in tool_objs]
|
||||
# Convert to the exact payload style Google expects
|
||||
tools = self.convert_tools_to_google_ai_format(tool_objs)
|
||||
else:
|
||||
tool_names = []
|
||||
|
||||
contents = self.add_dummy_model_messages(
|
||||
[m.to_google_ai_dict() for m in messages],
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user