Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/builtin/builtin.go
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ func (e *ErrChatFinish) Error() string {

func SysChatFinish(ctx context.Context, env []string, input string) (string, error) {
var params struct {
Message string `json:"message,omitempty"`
Message string `json:"summary,omitempty"`
}
if err := json.Unmarshal([]byte(input), &params); err != nil {
return "", &ErrChatFinish{
Expand Down
4 changes: 2 additions & 2 deletions pkg/tests/runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func TestDualSubChat(t *testing.T) {
r.RespondWith(tester.Result{
Func: types.CompletionFunctionCall{
Name: types.ToolNormalizer("sys.chat.finish"),
Arguments: `{"message":"Chat done"}`,
Arguments: `{"summary":"Chat done"}`,
},
})

Expand All @@ -89,7 +89,7 @@ func TestDualSubChat(t *testing.T) {
r.RespondWith(tester.Result{
Func: types.CompletionFunctionCall{
Name: types.ToolNormalizer("sys.chat.finish"),
Arguments: `{"message":"Chat done2"}`,
Arguments: `{"summary":"Chat done2"}`,
},
}, tester.Result{
Text: "And we're done",
Expand Down