Skip to content

Commit

Permalink
This example hangs if the JSON data is either marked as human or AI, …
Browse files Browse the repository at this point in the history
…it only works for me when marked as system (#670)
  • Loading branch information
timmattison authored Mar 13, 2024
1 parent 6eaa82c commit eecf58c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit eecf58c

Please sign in to comment.