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
ff6c2d6d
"vscode:/vscode.git/clone" did not exist on "11e61905797bac94d505597ddd8ce16e356db340"
Unverified
Commit
ff6c2d6d
authored
Nov 30, 2024
by
Jeffrey Morgan
Committed by
GitHub
Nov 30, 2024
Browse files
cmd: don't rely on reading repo file for test (#7898)
parent
d543b282
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
cmd/cmd_test.go
cmd/cmd_test.go
+2
-7
No files found.
cmd/cmd_test.go
View file @
ff6c2d6d
...
@@ -8,7 +8,6 @@ import (
...
@@ -8,7 +8,6 @@ import (
"net/http"
"net/http"
"net/http/httptest"
"net/http/httptest"
"os"
"os"
"path/filepath"
"strings"
"strings"
"testing"
"testing"
...
@@ -180,18 +179,14 @@ Weigh anchor!
...
@@ -180,18 +179,14 @@ Weigh anchor!
t
.
Run
(
"license"
,
func
(
t
*
testing
.
T
)
{
t
.
Run
(
"license"
,
func
(
t
*
testing
.
T
)
{
var
b
bytes
.
Buffer
var
b
bytes
.
Buffer
license
,
err
:=
os
.
ReadFile
(
filepath
.
Join
(
".."
,
"LICENSE"
))
license
:=
"MIT License
\n
Copyright (c) Ollama
\n
"
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
if
err
:=
showInfo
(
&
api
.
ShowResponse
{
if
err
:=
showInfo
(
&
api
.
ShowResponse
{
Details
:
api
.
ModelDetails
{
Details
:
api
.
ModelDetails
{
Family
:
"test"
,
Family
:
"test"
,
ParameterSize
:
"7B"
,
ParameterSize
:
"7B"
,
QuantizationLevel
:
"FP16"
,
QuantizationLevel
:
"FP16"
,
},
},
License
:
string
(
license
)
,
License
:
license
,
},
&
b
);
err
!=
nil
{
},
&
b
);
err
!=
nil
{
t
.
Fatal
(
err
)
t
.
Fatal
(
err
)
}
}
...
...
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