-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Function calling #996
Function calling #996
Conversation
The pr looks very promising, I only have some open questions about integration. I already have some tools to be added and would love to contribute them |
It would be cool if users could specify a tool by pasting in an OpenAPI spec |
Really excited for this feature |
Hi! So we're thinking about how to best integrate this feature. We'll probably add a few built-in tools that call some nice models from the hub as a first step, and then add support for OpenAPI tools afterwards since that's quite a bit more challenging to do, but it's definitely on my roadmap. If you have any suggestions, tips or use cases for this feature, please let me know, it's always useful to know how people plan to use a feature 😄 |
I added a text2img tool, seems to work well. Now i'm adding:
That way we'll have good multimodal support for tools 😄 |
Would love to see a tool that can perform RAG given a url to a chromaDB. |
* details: close on click outside * drag for tools * tools ordering * add link to community discussion * misc * calculator listed as last * file style * images with different ratios * page scraper: longer timeout @Saghen @mishig25 seems to work better with this * vertical gap * Revert "drag for tools" This reverts commit 8eeed3b. * chat padding on desktop * file colors * larger gap for all messages on xl screens
{#if searchUpdates && searchUpdates.length > 0} | ||
<OpenWebSearchResults | ||
classNames={tokens.length ? "mb-3.5" : ""} | ||
webSearchMessages={searchUpdates} | ||
/> | ||
{/if} | ||
|
||
{#if toolUpdates} | ||
{#each Object.values(toolUpdates) as tool} | ||
{#if tool.length > 0} |
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.
{#if tool.length > 0} | |
{#if tool.length} |
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.
after the CI is greaan, LGTM ! 🚀 🔥
Great job Liam & Nathan!
* update examples a * add tool indicator * llama 3 description update * image quick fix * mobile * icon purple
* Initial work on function calling * wip * Add websearch as a tool * lint * smol * Move tools to their own files * directly answer check * Add text2img tool * group tool calls together * show retry even if no message * fix trailing urls * Add image popup * format * wip * clean-up * better loading indicator * text colors * extra example to summarize * switch default model * Add fetchUrl tool * wip * Add latest gradio * fix types * version bump sharp * Basic tools menu * working menu * fix menu positioning * deps fix * add deps * cleanup * more cleanup * cleanup * package cleanups * moar cleanup * ui update * Update ChatMessage.svelte * upgrade gradio dep * lint * refactor and pass results to cohere * feat: code interpreter tool * fix: add e2b dependency * feat: working TGI endpoint with tool results * feat: allow image model to expand to 90dvw * fix: dont block on title gen * bump sharp * misc cleanup * fix url fetcher, adjust tool typing * migrate to new MessageUpdate schema * fix lint errors * image editing, pdf upload + parsing * feat: file preview for non-images * feat: image prompting, file ui, file migration, many fixes * feat: multiple files and tool file indices * feat: add back remote keylogging prevention * minor nit * minor * resolve nits * feat: use node vm for calculator and improve prompt * more nits * feat: add index to tools settings * chore: update invalid package lock * feat: bump gradio client to 0.19.4 * feat: move pdf to markdown to huggingchat * fix: uploaded file width * feat: prompt the model when no files available * Feat functions: UI update (huggingface#1157) * details: close on click outside * drag for tools * tools ordering * add link to community discussion * misc * calculator listed as last * file style * images with different ratios * page scraper: longer timeout @Saghen @mishig25 seems to work better with this * vertical gap * Revert "drag for tools" This reverts commit 8eeed3b. * chat padding on desktop * file colors * larger gap for all messages on xl screens * feat: update pdf to markdown schema * fix: uploaded file container width * fix: tool name check * fix: cohere endpoint * fix: use most recent message for files * feat: allow tools to access previous files * feat: support all file types on document parser * fix: use document parser in default tools * feat: rename url fetcher internal name * feat: resolve type error * feat: enable tools on prod command r+ * feat: truncate document markdown * feat: bump @huggingface/inference * feat: resolve type errors * nit * Feat functions misc update 2 (huggingface#1158) * update examples a * add tool indicator * llama 3 description update * image quick fix * mobile * icon purple --------- Co-authored-by: Victor Mustar <[email protected]> Co-authored-by: Liam Dyer <[email protected]> Co-authored-by: Mishig <[email protected]>
**Screenshots**