Matt
                                            Matt
                                        
                                    Yes! We could also add a section to the end of the [chat template documentation](https://huggingface.co/docs/transformers/main/en/chat_templating), under "Template Writing Tips" - it's a good way to make this feature visible to...
@amyeroberts this should be ready for review now! I still have to write the Mixtral template, but I think the core code here is ready.
cc @osanseviero - I thought about our chat yesterday, and I removed the decorator entirely. You're right that they can seem like confusing magic for users. Instead, the new API...
@amyeroberts all comments should be addressed now! Failing tests are unrelated, I'm hoping a rebase fixes them soon.
Hi @CISC, yes, we considered that! We felt that it just added extra complexity, though, and noticed that Anthropic skips that extra layer for tool-use in Claude too. I suspect...
@CISC Are there any examples of 'tools' that aren't functions out there? I'm curious about what those would look like!
Hmn, I feel like all of those categories could have the same API as functions with just different arguments, but still, I'll think about it - maybe retaining the flexibility...
@CISC After some internal discussion, we decided to accept your suggestion! The API will now wrap tool JSON in `{"type": "function", "function": ...}`, matching the OpenAI API. I'll make a...
@CISC yes! That needs much less support in the main library, though, so it might just be a change we make to individual model templates.
@molbap @amyeroberts I think everything's been addressed - let me know if I'm missing anything!