* feat(tasks): use tools for web search query if available
* feat(websearch): improve query generation with error handling and logging
* feat(tools): implement generic tool output extraction utility
This commit adds a new `getToolOutput` utility to standardize tool interaction across different tasks like title generation, reasoning summary, and web search query generation. The utility supports extracting tool outputs using a consistent approach, with fallback mechanisms and error handling.
fix: move FinalAnswer outside of reasoning processing blocks (#1717)
brians1196+1: bstieber
Unverified signature
21e1e7d
Co-authored-by: BRIAN M. STIEBER <bstieber@toyon.com>
fix: handle no beginToken for token based reasoning models (#1713)
* feat: add `deepseek-ai/DeepSeek-R1-Distill-Qwen-32B` to HuggingChat config
* feat: hide reasoning modal when its empty
* fix: put r1 model higher in list
Added currentDate variable to Dynamic Prompt (#1648)
evalstate+1: nsarrazin
Unverified signature
b1b3d86
* Added ability to include the current date in the assistant dynamic prompt
* feat: rename tag to {{today}}
---------
Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>
Anthropic Tool Support (#1594)
evalstate+1: nsarrazin
Unverified signature
1ac3a3c
* support anthropic PDF beta
* upstream merge, remove commented out console log line
* Fixing type errors.
the anthropic API does not yet include a "DocumentBlock" for
support PDFs, so an extended type has been added to the endpoint.
* changed document processor to async (matching image processor)
* use the beta api types rather than custom extension
* rudimentary tool testing
* interim commit (tool re-passing, file handling)
* remove merge error
* tidy up, isolate beta classes to utils
* anthropic tool calling support.
* improve handling of directlyAnswer tool
* fix streaming
* slight tidy up to tools flow handling
* fix: dont pass tools in final generation, instead deduce tools from tool results
---------
Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>
add option to send user message as part of request body in assistant … (#1322)
ethayu+2: Ethan Yu, nsarrazin
Unverified signature
2fb4284
* add option to send user message as part of request body in assistant invokations
* test
* finish
* fix linting problem
* fix: add support for legacy url param
* fix: remove code to send POST requests on the frontend
---------
Co-authored-by: Ethan Yu <etyu@tesla.com>
Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>
* feat: new tool UI
* wip community tools support
* fix: community tools support
* fix: line heights
* fix: MIME types
* fix: remove debug logs
* fix: make sure file upload is always last
* fix: always enable document parser when a pdf is present in the conversation
* fix: use correct icon for document upload
* fix: make sure community tools use their custom icons correctly
* feat: add button to browse community tools
* tweak buttons
* add some tooltips
* fix: bug in file upload tooltips
* fix: lint
---------
Co-authored-by: Victor Mustar <victor.mustar@gmail.com>
fix: catch errors more gracefully in reasoning specific calls
* fix: clean up tool calling
more inline with latest changes in transformers lib and adds tool calling to qwen 2.5 72b
* fix: add more field name options
* fix: make tool calls a bit more robust
* feat: add a reasoning dropdown for CoT models
* feat: add status updates
* fix: various cleanups
- pass content & status to result dropdown
- dont store streaming updates in db
- make status generation non blocking
* fix: make sure not to push reasoning token stream to db
* feat: add time indicator and make the ui match websearch
* fix: change in status update & prompt
[feat] Add support for endpoint web sources (#1544)
goupilew+1: nsarrazin
Unverified signature
f6846e2
* [feat] Add support for endpoint web sources
* chores: lint
---------
Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>
feat(endpoints): Add conv ID to headers passed to TGI (#1511)
* wip: give assistant tool access
* add api endpoints
* add/delete tools from assistant settings
* make tools work with assistants
* feat(tools): add more tools indicator throughout UI
* formatting
* feat(models): Add llama 3.1 405B and 70B
* feat(tools): improve tools support for llama 3.1 models
* feat(models): update mistral to latest
* feat(models): use llama 3.1 8B for tasks
* fix(tools): disable tools by default
* feat(models): update model descriptions in huggingchat
* fix(front): show branding for llama 3
* fix(config): fix encoding
* feat(migrations): reset tools for everyone
* feat(config): replace orgs with final org
* feat(config): update website for llama 3.1
* Add custom metrics for messages and conversations
* lint
* Add metrics for
- model health
- tools
- websearch
* Add time window & age buckets to summaries
* Increase max age for tool use duration
---------
Co-authored-by: antoniora <antonio.ramos@adyen.com>