We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a7ab9e commit 77715c8Copy full SHA for 77715c8
mellea/backends/huggingface.py
@@ -332,6 +332,7 @@ def _generate_from_context_standard(
332
input_ids = self._tokenizer.apply_chat_template( # type: ignore
333
ctx_as_conversation,
334
tools=convert_tools_to_json(tools), # type: ignore
335
+ add_generation_prompt=True,
336
return_tensors="pt",
337
**self._make_backend_specific_and_remove(model_options),
338
).to(self._device) # type: ignore
0 commit comments