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
d104b7e9
"vscode:/vscode.git/clone" did not exist on "d5e51aa9f0e354f1acb5f42c88890ff899ed832b"
Unverified
Commit
d104b7e9
authored
Oct 05, 2023
by
Alexander F. Rødseth
Committed by
GitHub
Oct 05, 2023
Browse files
Fix go test./... issue: fmt.Println arg list ends with redundant newline (#705)
parent
9e2de1bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
cmd/cmd.go
cmd/cmd.go
+4
-4
No files found.
cmd/cmd.go
View file @
d104b7e9
...
...
@@ -687,7 +687,7 @@ func generateInteractive(cmd *cobra.Command, model string) error {
switch
args
[
1
]
{
case
"license"
:
if
resp
.
License
==
""
{
fmt
.
Print
ln
(
"No license was specified for this model.
\n
"
)
fmt
.
Print
(
"No license was specified for this model.
\n
\n
"
)
}
else
{
fmt
.
Println
(
resp
.
License
)
}
...
...
@@ -695,19 +695,19 @@ func generateInteractive(cmd *cobra.Command, model string) error {
fmt
.
Println
(
resp
.
Modelfile
)
case
"parameters"
:
if
resp
.
Parameters
==
""
{
fmt
.
Print
ln
(
"No parameters were specified for this model.
\n
"
)
fmt
.
Print
(
"No parameters were specified for this model.
\n
\n
"
)
}
else
{
fmt
.
Println
(
resp
.
Parameters
)
}
case
"system"
:
if
resp
.
System
==
""
{
fmt
.
Print
ln
(
"No system prompt was specified for this model.
\n
"
)
fmt
.
Print
(
"No system prompt was specified for this model.
\n
\n
"
)
}
else
{
fmt
.
Println
(
resp
.
System
)
}
case
"template"
:
if
resp
.
Template
==
""
{
fmt
.
Print
ln
(
"No prompt template was specified for this model.
\n
"
)
fmt
.
Print
(
"No prompt template was specified for this model.
\n
\n
"
)
}
else
{
fmt
.
Println
(
resp
.
Template
)
}
...
...
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