fix(ollama_chat.py): fix passing assistant message with tool call param

Fixes https://github.com/BerriAI/litellm/issues/5319
This commit is contained in:
Krrish Dholakia 2024-08-22 09:59:52 -07:00
parent 4fe22ec493
commit f36e7e0754
4 changed files with 53 additions and 8 deletions

View file

@ -54,6 +54,7 @@ def get_current_weather(location, unit="fahrenheit"):
)
def test_parallel_function_call(model):
try:
litellm.set_verbose = True
# Step 1: send the conversation and available functions to the model
messages = [
{