From d73f8aa8c3979b33f5ea19b80406c20e88ee3b1b Mon Sep 17 00:00:00 2001 From: Parth Sareen Date: Wed, 16 Jul 2025 11:18:16 -0700 Subject: [PATCH] cmd: add default assistant role to message construction (#11431) --- cmd/cmd.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/cmd.go b/cmd/cmd.go index b569ddddcb..c661df4e76 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -1080,10 +1080,11 @@ func chat(cmd *cobra.Command, opts runOptions) (*api.Message, error) { var state *displayResponseState = &displayResponseState{} var latest api.ChatResponse var fullResponse strings.Builder - var role string var thinkTagOpened bool = false var thinkTagClosed bool = false + role := "assistant" + fn := func(response api.ChatResponse) error { if response.Message.Content != "" || !opts.HideThinking { p.StopAndClear()