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
d4cfee79
Commit
d4cfee79
authored
Jul 18, 2023
by
Michael Yang
Browse files
resolve modelfile before passing to server
parent
9658a504
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
cmd/cmd.go
cmd/cmd.go
+6
-0
No files found.
cmd/cmd.go
View file @
d4cfee79
...
@@ -9,6 +9,7 @@ import (
...
@@ -9,6 +9,7 @@ import (
"net"
"net"
"net/http"
"net/http"
"os"
"os"
"path/filepath"
"strings"
"strings"
"time"
"time"
...
@@ -25,6 +26,11 @@ import (
...
@@ -25,6 +26,11 @@ import (
func
create
(
cmd
*
cobra
.
Command
,
args
[]
string
)
error
{
func
create
(
cmd
*
cobra
.
Command
,
args
[]
string
)
error
{
filename
,
_
:=
cmd
.
Flags
()
.
GetString
(
"file"
)
filename
,
_
:=
cmd
.
Flags
()
.
GetString
(
"file"
)
filename
,
err
:=
filepath
.
Abs
(
filename
)
if
err
!=
nil
{
return
err
}
client
:=
api
.
NewClient
()
client
:=
api
.
NewClient
()
var
spinner
*
Spinner
var
spinner
*
Spinner
...
...
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