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
c344da4c
Unverified
Commit
c344da4c
authored
May 14, 2024
by
Patrick Devine
Committed by
GitHub
May 14, 2024
Browse files
fix keepalive for non-interactive mode (#4438)
parent
0e331c71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
cmd/cmd.go
cmd/cmd.go
+9
-8
No files found.
cmd/cmd.go
View file @
c344da4c
...
@@ -905,14 +905,15 @@ func generate(cmd *cobra.Command, opts runOptions) error {
...
@@ -905,14 +905,15 @@ func generate(cmd *cobra.Command, opts runOptions) error {
}
}
request
:=
api
.
GenerateRequest
{
request
:=
api
.
GenerateRequest
{
Model
:
opts
.
Model
,
Model
:
opts
.
Model
,
Prompt
:
opts
.
Prompt
,
Prompt
:
opts
.
Prompt
,
Context
:
generateContext
,
Context
:
generateContext
,
Images
:
opts
.
Images
,
Images
:
opts
.
Images
,
Format
:
opts
.
Format
,
Format
:
opts
.
Format
,
System
:
opts
.
System
,
System
:
opts
.
System
,
Template
:
opts
.
Template
,
Template
:
opts
.
Template
,
Options
:
opts
.
Options
,
Options
:
opts
.
Options
,
KeepAlive
:
opts
.
KeepAlive
,
}
}
if
err
:=
client
.
Generate
(
ctx
,
&
request
,
fn
);
err
!=
nil
{
if
err
:=
client
.
Generate
(
ctx
,
&
request
,
fn
);
err
!=
nil
{
...
...
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