Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
cmd: add default assistant role to message construction (#11431)
Parth Sareend73f8aa8c397
diff --git a/cmd/cmd.go b/cmd/cmd.goindex b569ddddc..c661df4e7 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.ChatResponsevar fullResponse strings.Builder- var role stringvar thinkTagOpened bool = falsevar thinkTagClosed bool = false+ role := "assistant"+fn := func(response api.ChatResponse) error {if response.Message.Content != "" || !opts.HideThinking {p.StopAndClear()