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
b3af953a
Unverified
Commit
b3af953a
authored
Mar 12, 2025
by
frob
Committed by
GitHub
Mar 11, 2025
Browse files
cli: don't exit for invalid model during /load. (#9576)
Co-authored-by:
Richard Lyons
<
frob@cloudstaff.com
>
parent
ad4e0bf3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
cmd/interactive.go
cmd/interactive.go
+4
-0
No files found.
cmd/interactive.go
View file @
b3af953a
...
...
@@ -195,6 +195,10 @@ func generateInteractive(cmd *cobra.Command, opts runOptions) error {
opts
.
Messages
=
[]
api
.
Message
{}
fmt
.
Printf
(
"Loading model '%s'
\n
"
,
opts
.
Model
)
if
err
:=
loadOrUnloadModel
(
cmd
,
&
opts
);
err
!=
nil
{
if
strings
.
Contains
(
err
.
Error
(),
"not found"
)
{
fmt
.
Printf
(
"error: %v
\n
"
,
err
)
continue
}
return
err
}
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