Commit
·
0b0e2f2
1
Parent(s):
d92433f
- hf_backend.py +1 -0
hf_backend.py
CHANGED
|
@@ -117,6 +117,7 @@ class HFChatBackend(ChatBackend):
|
|
| 117 |
prompt = tokenizer.apply_chat_template(
|
| 118 |
messages,
|
| 119 |
tokenize=False,
|
|
|
|
| 120 |
add_generation_prompt=True,
|
| 121 |
)
|
| 122 |
logger.debug("Applied chat template for prompt")
|
|
|
|
| 117 |
prompt = tokenizer.apply_chat_template(
|
| 118 |
messages,
|
| 119 |
tokenize=False,
|
| 120 |
+
tools=request.get("tools"),
|
| 121 |
add_generation_prompt=True,
|
| 122 |
)
|
| 123 |
logger.debug("Applied chat template for prompt")
|