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
31ab453d
"src/vscode:/vscode.git/clone" did not exist on "1ad65879a1af25941abc13a43566ebdf92073e6c"
Unverified
Commit
31ab453d
authored
Nov 20, 2023
by
Bruce MacDonald
Committed by
GitHub
Nov 20, 2023
Browse files
resolve FROM path before sending modelfile (#1211)
parent
35c4b5ec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
cmd/cmd.go
cmd/cmd.go
+4
-0
No files found.
cmd/cmd.go
View file @
31ab453d
...
@@ -82,6 +82,10 @@ func CreateHandler(cmd *cobra.Command, args []string) error {
...
@@ -82,6 +82,10 @@ func CreateHandler(cmd *cobra.Command, args []string) error {
path
=
filepath
.
Join
(
home
,
path
[
2
:
])
path
=
filepath
.
Join
(
home
,
path
[
2
:
])
}
}
if
!
filepath
.
IsAbs
(
path
)
{
path
=
filepath
.
Join
(
filepath
.
Dir
(
filename
),
path
)
}
bin
,
err
:=
os
.
Open
(
path
)
bin
,
err
:=
os
.
Open
(
path
)
if
errors
.
Is
(
err
,
os
.
ErrNotExist
)
&&
c
.
Name
==
"model"
{
if
errors
.
Is
(
err
,
os
.
ErrNotExist
)
&&
c
.
Name
==
"model"
{
continue
continue
...
...
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