mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
fix function calling
This commit is contained in:
parent
1523e26c8f
commit
1122a40374
1 changed files with 2 additions and 2 deletions
|
@ -642,9 +642,9 @@ def completion(
|
||||||
|
|
||||||
prompt = " ".join(
|
prompt = " ".join(
|
||||||
[
|
[
|
||||||
message["content"]
|
message.get("content", "")
|
||||||
for message in messages
|
for message in messages
|
||||||
if isinstance(message["content"], str)
|
if isinstance(message.get("content", ""), str)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue