-
Notifications
You must be signed in to change notification settings - Fork 889
Function Calling with Hugging Face #2060
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Second PR @philschmid @andrewrreed hey @drbh I added you here as author as said previously. |
Function_Calling.md
Outdated
|
||
## Introduction | ||
|
||
A few weeks ago, we introduced to you the brand new [Messages AP](https://huggingface.co/blog/tgi-messages-api)I that provided OpenAI compatibility with Text Generation Inference (TGI) and Inference Endpoints. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete the "I"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also AP --> API
Function_Calling.md
Outdated
|
||
A few weeks ago, we introduced to you the brand new [Messages AP](https://huggingface.co/blog/tgi-messages-api)I that provided OpenAI compatibility with Text Generation Inference (TGI) and Inference Endpoints. | ||
|
||
We wrote at the time that “*The Messages API does not currently support function calling” this is a limitation that has now been lifted !* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rewrite suggestion: "Today, the Messages API can now support function calling."
Function_Calling.md
Outdated
To get you started quickly, we’ve included detailed code examples of how to: | ||
|
||
- Create an Inference Endpoint | ||
- Call Function with the InferencClient |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: InferenceClient
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also another typo: "This change has been propogated in the huggingface_hub
version 0.23.0., meaning any Hugging Face endpoint can now call some tools if using a newer version."
Function_Calling.md
Outdated
|
||
### With the InferencClient from Hugging Face | ||
|
||
Function can directly be called with the serverless API, or with any endpoint by with the enpoint url. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: endpoint URL
Function_Calling.md
Outdated
|
||
## Conclusion | ||
|
||
You can now call some tools with Hugging Face models in the different frameworks. We can’t wait to see what use cases you will power with open LLMs and tools ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a call to action with a link to either docs or place where users can try this out for themselves
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we rename to "Tool Calling" to match the general direction of what this feature is called on other platforms?
Will read through deeper later this afternoon
Would make sense indeed. |
Blog Post on how to do Function call with Hugging Face models
To merge:
Wednesday at 6.30 pm