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
0fc80e0f
Commit
0fc80e0f
authored
Jun 26, 2023
by
Bruce MacDonald
Browse files
add todo
parent
d34985b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
template.py
template.py
+1
-1
No files found.
template.py
View file @
0fc80e0f
...
@@ -53,5 +53,5 @@ def template(model, prompt):
...
@@ -53,5 +53,5 @@ def template(model, prompt):
max_ratio
=
ratio
max_ratio
=
ratio
closest_key
=
key
closest_key
=
key
# Return the value of the closest match
# Return the value of the closest match
p
=
model_prompts
.
get
(
closest_key
)
#
.format(placeholder=prompt)
p
=
model_prompts
.
get
(
closest_key
)
#
TODO: provide a better default template
return
p
.
format
(
prompt
=
prompt
)
return
p
.
format
(
prompt
=
prompt
)
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