mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-11 00:07:07 +00:00
add multi line strings to final prompt
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user