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
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 {
...
@@ -687,7 +687,7 @@ func generateInteractive(cmd *cobra.Command, model string) error {
switch
args
[
1
]
{
switch
args
[
1
]
{
case
"license"
:
case
"license"
:
if
resp
.
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
{
}
else
{
fmt
.
Println
(
resp
.
License
)
fmt
.
Println
(
resp
.
License
)
}
}
...
@@ -695,19 +695,19 @@ func generateInteractive(cmd *cobra.Command, model string) error {
...
@@ -695,19 +695,19 @@ func generateInteractive(cmd *cobra.Command, model string) error {
fmt
.
Println
(
resp
.
Modelfile
)
fmt
.
Println
(
resp
.
Modelfile
)
case
"parameters"
:
case
"parameters"
:
if
resp
.
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
{
}
else
{
fmt
.
Println
(
resp
.
Parameters
)
fmt
.
Println
(
resp
.
Parameters
)
}
}
case
"system"
:
case
"system"
:
if
resp
.
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
{
}
else
{
fmt
.
Println
(
resp
.
System
)
fmt
.
Println
(
resp
.
System
)
}
}
case
"template"
:
case
"template"
:
if
resp
.
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
{
}
else
{
fmt
.
Println
(
resp
.
Template
)
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