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
"docs/vscode:/vscode.git/clone" did not exist on "17be9e1607d81936e51c7fde112086cd31d2588e"
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 {
}
request
:=
api
.
GenerateRequest
{
Model
:
opts
.
Model
,
Prompt
:
opts
.
Prompt
,
Context
:
generateContext
,
Images
:
opts
.
Images
,
Format
:
opts
.
Format
,
System
:
opts
.
System
,
Template
:
opts
.
Template
,
Options
:
opts
.
Options
,
Model
:
opts
.
Model
,
Prompt
:
opts
.
Prompt
,
Context
:
generateContext
,
Images
:
opts
.
Images
,
Format
:
opts
.
Format
,
System
:
opts
.
System
,
Template
:
opts
.
Template
,
Options
:
opts
.
Options
,
KeepAlive
:
opts
.
KeepAlive
,
}
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