Skip to content
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

Merged
merged 93 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
59b3788
Initial work on function calling
nsarrazin Apr 8, 2024
0181574
wip
nsarrazin Apr 9, 2024
2acbce1
Add websearch as a tool
nsarrazin Apr 9, 2024
4f3716b
lint
nsarrazin Apr 9, 2024
6e31d72
smol
nsarrazin Apr 9, 2024
a5cc012
Move tools to their own files
nsarrazin Apr 10, 2024
ba42921
directly answer check
nsarrazin Apr 10, 2024
a1bd9e9
Merge branch 'main' into feat/functions
nsarrazin Apr 10, 2024
9fb4f5f
Merge branch 'main' into feat/functions
nsarrazin Apr 15, 2024
92cc8ef
Add text2img tool
nsarrazin Apr 15, 2024
4975d3f
group tool calls together
nsarrazin Apr 15, 2024
ea801a7
show retry even if no message
nsarrazin Apr 15, 2024
07b27ee
fix trailing urls
nsarrazin Apr 15, 2024
19fb04f
Add image popup
nsarrazin Apr 16, 2024
628fc60
Merge branch 'main' into feat/functions
nsarrazin Apr 16, 2024
ce1575e
format
nsarrazin Apr 16, 2024
4a28089
wip
nsarrazin Apr 22, 2024
6cfb53a
Merge branch 'main' into feat/functions
nsarrazin Apr 22, 2024
21a1e91
clean-up
nsarrazin Apr 24, 2024
58b5054
Merge branch 'main' into feat/functions
nsarrazin Apr 24, 2024
0a1db84
better loading indicator
nsarrazin Apr 24, 2024
b4e3170
text colors
nsarrazin Apr 24, 2024
88f953e
extra example to summarize
nsarrazin Apr 25, 2024
61c2bea
switch default model
nsarrazin Apr 25, 2024
2d3a3e0
Merge branch 'main' into feat/functions
nsarrazin Apr 25, 2024
dc38800
Add fetchUrl tool
nsarrazin Apr 26, 2024
a9400c6
wip
nsarrazin Apr 26, 2024
6de190c
Merge branch 'main' into feat/functions
nsarrazin May 5, 2024
920c989
Add latest gradio
nsarrazin May 5, 2024
79865f4
fix types
nsarrazin May 5, 2024
37a9bc9
version bump sharp
nsarrazin May 5, 2024
c8b64f3
Basic tools menu
nsarrazin May 9, 2024
81a1afc
working menu
nsarrazin May 10, 2024
0e09837
fix menu positioning
nsarrazin May 10, 2024
e8cd0da
Merge branch 'main' into feat/functions
nsarrazin May 10, 2024
8e24c6a
deps fix
nsarrazin May 10, 2024
a55ddc2
add deps
nsarrazin May 10, 2024
49a58f6
cleanup
nsarrazin May 10, 2024
392de1e
more cleanup
nsarrazin May 10, 2024
0ea2ce9
cleanup
nsarrazin May 10, 2024
fc9049f
package cleanups
nsarrazin May 10, 2024
ab6fbfb
moar cleanup
nsarrazin May 10, 2024
98f9009
ui update
gary149 May 10, 2024
d9c83f3
Update ChatMessage.svelte
gary149 May 10, 2024
3e15b24
upgrade gradio dep
nsarrazin May 10, 2024
515826a
lint
nsarrazin May 10, 2024
0cf2526
refactor and pass results to cohere
Saghen May 15, 2024
5b16398
feat: code interpreter tool
Saghen May 15, 2024
bf6f1cb
fix: add e2b dependency
Saghen May 15, 2024
759f675
feat: working TGI endpoint with tool results
Saghen May 15, 2024
f33c901
feat: allow image model to expand to 90dvw
Saghen May 15, 2024
e0c38e2
fix: dont block on title gen
Saghen May 15, 2024
fdf0947
Merge branch 'main' into feat/functions
Saghen May 16, 2024
6d4ee00
bump sharp
Saghen May 16, 2024
e5eeb5b
misc cleanup
Saghen May 16, 2024
d89d5af
fix url fetcher, adjust tool typing
Saghen May 17, 2024
4462ba4
migrate to new MessageUpdate schema
Saghen May 17, 2024
8cbe09f
fix lint errors
Saghen May 17, 2024
a4f8e14
Merge branch 'main' into feat/functions
Saghen May 17, 2024
dbc0ca7
image editing, pdf upload + parsing
Saghen May 20, 2024
42cd8c5
feat: file preview for non-images
Saghen May 20, 2024
f01f1d5
feat: image prompting, file ui, file migration, many fixes
Saghen May 20, 2024
d38ac95
feat: multiple files and tool file indices
Saghen May 21, 2024
2064f7f
feat: add back remote keylogging prevention
Saghen May 21, 2024
6bc4bff
minor nit
Saghen May 21, 2024
769c29a
minor
Saghen May 21, 2024
7e1d8c5
resolve nits
Saghen May 21, 2024
bab10f3
feat: use node vm for calculator and improve prompt
Saghen May 21, 2024
6d2c9e1
more nits
Saghen May 21, 2024
67bc262
feat: add index to tools settings
Saghen May 21, 2024
462940f
chore: update invalid package lock
Saghen May 21, 2024
bcc0878
feat: bump gradio client to 0.19.4
Saghen May 22, 2024
4ebee73
feat: move pdf to markdown to huggingchat
Saghen May 22, 2024
2270575
fix: uploaded file width
Saghen May 22, 2024
d704585
feat: prompt the model when no files available
Saghen May 22, 2024
f1fab0f
Feat functions: UI update (#1157)
gary149 May 22, 2024
86df89d
feat: update pdf to markdown schema
Saghen May 22, 2024
251e7cc
fix: uploaded file container width
Saghen May 22, 2024
a4f1d18
fix: tool name check
Saghen May 22, 2024
456e696
fix: cohere endpoint
Saghen May 22, 2024
6139400
fix: use most recent message for files
Saghen May 22, 2024
1cd0683
feat: allow tools to access previous files
Saghen May 23, 2024
4a0a3a7
feat: support all file types on document parser
Saghen May 23, 2024
4579850
fix: use document parser in default tools
Saghen May 23, 2024
ed4b666
feat: rename url fetcher internal name
Saghen May 23, 2024
4ac302c
feat: resolve type error
Saghen May 23, 2024
5073b92
feat: enable tools on prod command r+
Saghen May 23, 2024
03fcb59
feat: truncate document markdown
Saghen May 23, 2024
1e6e1cf
feat: bump @huggingface/inference
Saghen May 23, 2024
abceba7
feat: resolve type errors
Saghen May 23, 2024
4506ffb
nit
Saghen May 23, 2024
e85030b
Feat functions misc update 2 (#1158)
gary149 May 23, 2024
e9a834b
Merge branch 'main' into feat/functions
May 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ WEBHOOK_URL_REPORT_ASSISTANT=#provide webhook url to get notified when an assist
ALLOWED_USER_EMAILS=`[]` # if it's defined, only these emails will be allowed to use the app

USAGE_LIMITS=`{}`

ALLOW_INSECURE_COOKIES=false # recommended to keep this to false but set to true if you need to run over http without tls
METRICS_PORT=
LOG_LEVEL=info
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = {
extraFileExtensions: [".svelte"],
},
rules: {
"no-shadow": ["error"],
"require-yield": "off",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-unused-vars": [
Expand Down
13 changes: 7 additions & 6 deletions chart/env/prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ envVars:
"modelUrl": "https://huggingface.co/CohereForAI/c4ai-command-r-plus",
"websiteUrl": "https://docs.cohere.com/docs/command-r-plus",
"logoUrl": "https://huggingface.co/datasets/huggingchat/models-logo/resolve/main/cohere-logo.png",
"tools": true,
"parameters": {
"stop": ["<|END_OF_TURN_TOKEN|>"],
"truncate" : 28672,
Expand All @@ -47,20 +48,20 @@ envVars:
},
"promptExamples" : [
{
"title": "Write an email from bullet list",
"prompt": "As a restaurant owner, write a professional email to the supplier to get these products every week: \n\n- Wine (x10)\n- Eggs (x24)\n- Bread (x12)"
"title": "Generate a mouse portrait",
"prompt": "Generate the portrait of a scientific mouse in its laboratory."
}, {
"title": "Review a pull request",
"prompt": "Review this pull request: https://github.com/huggingface/chat-ui/pull/1131/files"
}, {
"title": "Code a snake game",
"prompt": "Code a basic snake game in python, give explanations for each step."
}, {
"title": "Assist in a task",
"prompt": "How do I make a delicious lemon cheesecake?"
}
]
},
{
"name" : "meta-llama/Meta-Llama-3-70B-Instruct",
"description": "Generation over generation, Meta Llama 3 demonstrates state-of-the-art performance on a wide range of industry benchmarks and offers new capabilities, including improved reasoning.",
"description": "Meta Llama 3 delivers top performance on various benchmarks and introduces new features like better reasoning.",
"logoUrl": "https://huggingface.co/datasets/huggingchat/models-logo/resolve/main/meta-logo.png",
"modelUrl": "https://huggingface.co/meta-llama/Meta-Llama-3-70B-Instruct",
"websiteUrl": "https://llama.meta.com/llama3/",
Expand Down
Loading
Loading