Lead anthropic function call XML with newline
This commit is contained in:
parent
c143d863cb
commit
657416780d
@ -94,7 +94,11 @@ func buildRequest(params model.RequestParameters, messages []model.Message) Requ
|
||||
if err != nil {
|
||||
panic("Could not serialize []ToolCall to XMLFunctionCall")
|
||||
}
|
||||
message.Content += xmlString
|
||||
if len(message.Content) > 0 {
|
||||
message.Content += fmt.Sprintf("\n\n%s", xmlString)
|
||||
} else {
|
||||
message.Content = xmlString
|
||||
}
|
||||
case model.MessageRoleToolResult:
|
||||
xmlFuncResults := convertToolResultsToXMLFunctionResult(msg.ToolResults)
|
||||
xmlString, err := xmlFuncResults.XMLString()
|
||||
|
Loading…
Reference in New Issue
Block a user