Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
01c44d68
Commit
01c44d68
authored
Sep 23, 2023
by
Jeffrey Morgan
Browse files
add multi line strings to final prompt
parent
9b12a511
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
cmd/cmd.go
cmd/cmd.go
+1
-0
No files found.
cmd/cmd.go
View file @
01c44d68
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment