Update prompting.py

This commit is contained in:
Saifeddine ALOUI 2025-03-10 13:38:17 +01:00 committed by GitHub
parent 4364f4b3cc
commit 11b283defa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -182,6 +182,8 @@ class LollmsContextDetails:
" }",
"}",
"```",
"Do not explain how the function call works, just call it with the parameters",
"Once you call the function, it will be executed and the output returned to the user.",
"It is mandatory to use the function markdown tag (not json) or it won't be executed."
"Important Notes:",
"- **Always** enclose the function call in a `function` markdown code block.",
@ -207,4 +209,4 @@ class LollmsContextDetails:
print(f"Prompt size : {nb_prompt_tokens}")
print(f"Requested generation max size : {nb_tokens}")
return prompt
return prompt