Unverified Commit d73f8aa8 authored by Parth Sareen's avatar Parth Sareen Committed by GitHub
Browse files

cmd: add default assistant role to message construction (#11431)

parent 92c2e8a5
...@@ -1080,10 +1080,11 @@ func chat(cmd *cobra.Command, opts runOptions) (*api.Message, error) { ...@@ -1080,10 +1080,11 @@ func chat(cmd *cobra.Command, opts runOptions) (*api.Message, error) {
var state *displayResponseState = &displayResponseState{} var state *displayResponseState = &displayResponseState{}
var latest api.ChatResponse var latest api.ChatResponse
var fullResponse strings.Builder var fullResponse strings.Builder
var role string
var thinkTagOpened bool = false var thinkTagOpened bool = false
var thinkTagClosed bool = false var thinkTagClosed bool = false
role := "assistant"
fn := func(response api.ChatResponse) error { fn := func(response api.ChatResponse) error {
if response.Message.Content != "" || !opts.HideThinking { if response.Message.Content != "" || !opts.HideThinking {
p.StopAndClear() p.StopAndClear()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment