Merge pull request #4039 from themrzmaster/main

fix tool usage null content using vertexai
This commit is contained in:
Ishaan Jaff 2024-06-06 12:41:25 -07:00 committed by GitHub
commit 422b4b1728
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
]
)