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
658e60cf
Commit
658e60cf
authored
Apr 22, 2024
by
Bruce MacDonald
Browse files
Revert "stop running model on interactive exit"
This reverts commit
fad00a85
.
parent
4c78f028
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
cmd/interactive.go
cmd/interactive.go
+0
-8
No files found.
cmd/interactive.go
View file @
658e60cf
...
@@ -475,14 +475,6 @@ func generateInteractive(cmd *cobra.Command, opts runOptions) error {
...
@@ -475,14 +475,6 @@ func generateInteractive(cmd *cobra.Command, opts runOptions) error {
usage
()
usage
()
}
}
case
strings
.
HasPrefix
(
line
,
"/exit"
),
strings
.
HasPrefix
(
line
,
"/bye"
)
:
case
strings
.
HasPrefix
(
line
,
"/exit"
),
strings
.
HasPrefix
(
line
,
"/bye"
)
:
// stop the running model
client
,
err
:=
api
.
ClientFromEnvironment
()
if
err
!=
nil
{
return
err
}
client
.
Chat
(
cmd
.
Context
(),
&
api
.
ChatRequest
{
Model
:
opts
.
Model
,
KeepAlive
:
&
api
.
Duration
{}},
func
(
resp
api
.
ChatResponse
)
error
{
return
nil
})
return
nil
return
nil
case
strings
.
HasPrefix
(
line
,
"/"
)
:
case
strings
.
HasPrefix
(
line
,
"/"
)
:
args
:=
strings
.
Fields
(
line
)
args
:=
strings
.
Fields
(
line
)
...
...
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