mirror of
https://github.com/ollama/ollama.git
synced 2025-03-29 11:11:47 +01:00
fix redundant newline
This commit is contained in:
parent
f9b7d65e2b
commit
16c7548460
10
cmd/cmd.go
10
cmd/cmd.go
@ -714,11 +714,11 @@ func generateInteractive(cmd *cobra.Command, opts generateOptions) error {
|
|||||||
case MultilineSystem:
|
case MultilineSystem:
|
||||||
opts.System = prompt
|
opts.System = prompt
|
||||||
prompt = ""
|
prompt = ""
|
||||||
fmt.Println("Set system template.\n")
|
fmt.Println("Set system template.")
|
||||||
case MultilineTemplate:
|
case MultilineTemplate:
|
||||||
opts.Template = prompt
|
opts.Template = prompt
|
||||||
prompt = ""
|
prompt = ""
|
||||||
fmt.Println("Set model template.\n")
|
fmt.Println("Set model template.")
|
||||||
}
|
}
|
||||||
multiline = MultilineNone
|
multiline = MultilineNone
|
||||||
case strings.HasPrefix(line, `"""`) && len(prompt) == 0:
|
case strings.HasPrefix(line, `"""`) && len(prompt) == 0:
|
||||||
@ -793,9 +793,9 @@ func generateInteractive(cmd *cobra.Command, opts generateOptions) error {
|
|||||||
if found {
|
if found {
|
||||||
opts.System = prompt
|
opts.System = prompt
|
||||||
if args[1] == "system" {
|
if args[1] == "system" {
|
||||||
fmt.Println("Set system template.\n")
|
fmt.Println("Set system template.")
|
||||||
} else {
|
} else {
|
||||||
fmt.Println("Set prompt template.\n")
|
fmt.Println("Set prompt template.")
|
||||||
}
|
}
|
||||||
prompt = ""
|
prompt = ""
|
||||||
} else {
|
} else {
|
||||||
@ -809,7 +809,7 @@ func generateInteractive(cmd *cobra.Command, opts generateOptions) error {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
opts.System = line
|
opts.System = line
|
||||||
fmt.Println("Set system template.\n")
|
fmt.Println("Set system template.")
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
fmt.Printf("Unknown command '/set %s'. Type /? for help\n", args[1])
|
fmt.Printf("Unknown command '/set %s'. Type /? for help\n", args[1])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user