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
a12df7fa
Commit
a12df7fa
authored
Jun 27, 2023
by
Bruce MacDonald
Browse files
fix build
parent
6599268d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
2 deletions
+1
-2
model_prompts.json
model_prompts.json
+0
-0
ollama.py
ollama.py
+0
-1
template.py
template.py
+1
-1
No files found.
lib/
model_prompts.json
→
model_prompts.json
View file @
a12df7fa
File moved
ollama.py
View file @
a12df7fa
...
...
@@ -86,7 +86,6 @@ def unload(model):
def
generate
(
model
,
prompt
):
# auto load
error
=
load
(
model
)
print
(
error
)
if
error
is
not
None
:
return
error
generated
=
llms
[
model
](
...
...
lib/
template.py
→
template.py
View file @
a12df7fa
from
difflib
import
SequenceMatcher
import
json
with
open
(
"model_prompts.json"
,
"r"
)
as
f
:
with
open
(
"
./
model_prompts.json"
,
"r"
)
as
f
:
model_prompts
=
json
.
load
(
f
)
...
...
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