forked from phoenix/litellm-mirror
Merge pull request #4039 from themrzmaster/main
fix tool usage null content using vertexai
This commit is contained in:
commit
422b4b1728
1 changed files with 2 additions and 2 deletions
|
@ -647,9 +647,9 @@ def completion(
|
|||
|
||||
prompt = " ".join(
|
||||
[
|
||||
message["content"]
|
||||
message.get("content")
|
||||
for message in messages
|
||||
if isinstance(message["content"], str)
|
||||
if isinstance(message.get("content", None), str)
|
||||
]
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue