mirror of
https://github.com/ollama/ollama.git
synced 2025-04-04 09:58:31 +02:00
add multi line strings to final prompt
This commit is contained in:
parent
9b12a511ca
commit
01c44d687e
@ -581,6 +581,7 @@ func generateInteractive(cmd *cobra.Command, model string) error {
|
||||
isMultiLine = false
|
||||
painter.HideHint = false
|
||||
multiLineBuffer += strings.TrimSuffix(line, `"""`)
|
||||
line = multiLineBuffer
|
||||
multiLineBuffer = ""
|
||||
scanner.SetPrompt(">>> ")
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user