From eecf58cc8640f36f230d3cf75c742d7fdcd09109 Mon Sep 17 00:00:00 2001 From: Tim Mattison Date: Wed, 13 Mar 2024 19:38:45 -0400 Subject: [PATCH] This example hangs if the JSON data is either marked as human or AI, it only works for me when marked as system (#670) --- examples/ollama-functions-example/ollama_functions_example.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ollama-functions-example/ollama_functions_example.go b/examples/ollama-functions-example/ollama_functions_example.go index d7ce720f9..c5b3cfef7 100644 --- a/examples/ollama-functions-example/ollama_functions_example.go +++ b/examples/ollama-functions-example/ollama_functions_example.go @@ -107,7 +107,7 @@ func dispatchCall(c *Call) (llms.MessageContent, bool) { if err != nil { log.Fatal(err) } - return llms.TextParts(schema.ChatMessageTypeHuman, weather), true + return llms.TextParts(schema.ChatMessageTypeSystem, weather), true case "finalResponse": resp, ok := c.Input["response"].(string) if !ok {