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
a897e833
Unverified
Commit
a897e833
authored
Jan 16, 2024
by
Bruce MacDonald
Committed by
GitHub
Jan 16, 2024
Browse files
do not cache prompt (#2018)
- prompt cache causes inferance to hang after some time
parent
eef50acc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
llm/dyn_ext_server.go
llm/dyn_ext_server.go
+0
-1
No files found.
llm/dyn_ext_server.go
View file @
a897e833
...
@@ -181,7 +181,6 @@ func (llm *dynExtServer) Predict(ctx context.Context, predict PredictOpts, fn fu
...
@@ -181,7 +181,6 @@ func (llm *dynExtServer) Predict(ctx context.Context, predict PredictOpts, fn fu
"seed"
:
predict
.
Options
.
Seed
,
"seed"
:
predict
.
Options
.
Seed
,
"stop"
:
predict
.
Options
.
Stop
,
"stop"
:
predict
.
Options
.
Stop
,
"image_data"
:
imageData
,
"image_data"
:
imageData
,
"cache_prompt"
:
true
,
}
}
if
predict
.
Format
==
"json"
{
if
predict
.
Format
==
"json"
{
...
...
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