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
2ae573c7
Unverified
Commit
2ae573c7
authored
Dec 07, 2023
by
Michael Yang
Committed by
GitHub
Dec 07, 2023
Browse files
Merge pull request #1421 from jmorganca/mxyng/fix-newline
fix redundant newline
parents
ba264e9d
16c75484
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
cmd/cmd.go
cmd/cmd.go
+5
-5
No files found.
cmd/cmd.go
View file @
2ae573c7
...
@@ -714,11 +714,11 @@ func generateInteractive(cmd *cobra.Command, opts generateOptions) error {
...
@@ -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 {
...
@@ -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 {
...
@@ -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
])
...
...
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