Marcello Fitton
39e6ccdaa3
Add keyboard shortcuts to scroll to top and bottom of chat history ( #4870 )
...
* Add keybindings to scroll to top and bottom of chat history
* fix isUserScrolling flag and set scrollToBottom to be instant instead of smoothe
* fix stream scroll
* fix default export by removing unneeded constant
* Replace file-defined `isMac` variable with global util
* extract funcitonality to hooks for clarity
* patch import
---------
Co-authored-by: shatfield4 <seanhatfield5@gmail.com >
Co-authored-by: Timothy Carambat <rambat1010@gmail.com >
2026-01-26 14:20:08 -08:00
Timothy Carambat
d6f0d305ab
Enable real-time agent tool call streaming for all providers ( #4279 )
...
* WIP agentic tool call streaming
- OpenAI
- Anthropic
- Azure OpenAI
* WIP rest of providers EXCLUDES Bedrock and GenericOpenAI
* patch untooled complete/streaming to use chatCallback provider from provider class and not assume OpenAI client struct
example: Ollama
* modify ollama to function with its own overrides
normalize completion/stream outputs across providers/untooled
* dev build
* fix message sanization for anthropic agent streaming
* wip fix anthropic agentic streaming sanitization
* patch gemini, webgenui, generic aibitat providers + disable providers unable to test
* refactor anthropic aibitat provider for empty message and tool call formatting
* Add frontend missing prop check
update Azure for streaming support
update Gemini to streamting support on gemini-* models
generic OpenAI disable streaming
verify localAI support
verify NVIDIA Nim support
* DPAIS, remove temp from call, support streaming'
* remove 0 temp to remove possibility of bad temp error/500s/400s
* Patch condition where model is non-streamable and no tools are present or called resulting in the provider `handleFunctionCallChat` being called - which returns a string.
This would then fail in Untooled.complete since response would be a string and not the expected `response.choices?.[0]?.message`
Modified this line to handle both conditions for stream/non-streaming and tool presence or lack thereof
* Allow generic Openai to be streamable since using untooled it should work fine
honor disabled streaming for provider where that concern may apply for regular chats
* rename function and more gemini-specific function to gemini provider
* add comments for readability
.complete on azure should be non-streaming as this is the sync response
* migrate CometAPI, but disable as we cannot test
---------
Co-authored-by: shatfield4 <seanhatfield5@gmail.com >
2025-10-01 10:17:18 -07:00
Timothy Carambat
755ef4bb80
STT append spoken text ( #4216 )
...
* STT append spoken text
* remove default args from calls
* fix bug where message and input were out of sync
* update diffs
2025-07-31 12:23:36 -07:00
Timothy Carambat
24f176c049
[Chore]: sendCommand non positional call signature ( #4218 )
...
Chore: `sendCommand` non positional call signature
2025-07-30 11:28:02 -07:00
yuanbin
dc8b204cd1
Fix File attachments are not cleared on second send click when use @a… ( #3843 )
...
Fix File attachments are not cleared on second send click when use @agent
Co-authored-by: Timothy Carambat <rambat1010@gmail.com >
2025-05-27 07:38:11 -07:00
Timothy Carambat
dd9c2b4af9
TTS auto-speak and STT auto-submit ( #3696 )
...
* auto STT submit control
* simplified STT auto and TTS autoplay
* add chatId to piper elements
* change defaults
* add chat customization page for enabling/disabling new features + options on account modal
* add translation placeholders
* show keybind command
* dev build
* Account modal ui prevent page reload + show Tooltip
---------
Co-authored-by: shatfield4 <seanhatfield5@gmail.com >
2025-04-28 13:57:03 -07:00
Yash Suresh Chandra
23d5f368d9
speech to text typo correction ( #3330 )
...
Co-authored-by: Timothy Carambat <rambat1010@gmail.com >
2025-02-26 15:26:08 -08:00
Sean Hatfield
3390ccf4b1
Improve PromptInput component ( #3266 )
...
* allow typing while streaming + refactor props
* remove duplicate function
2025-02-18 15:18:55 -08:00
Timothy Carambat
dd7c4675d3
LLM performance metric tracking ( #2825 )
...
* WIP performance metric tracking
* fix: patch UI trying to .toFixed() null metric
Anthropic tracking migraiton
cleanup logs
* Apipie implmentation, not tested
* Cleanup Anthropic notes, Add support for AzureOpenAI tracking
* bedrock token metric tracking
* Cohere support
* feat: improve default stream handler to track for provider who are actually OpenAI compliant in usage reporting
add deepseek support
* feat: Add FireworksAI tracking reporting
fix: improve handler when usage:null is reported (why?)
* Add token reporting for GenericOpenAI
* token reporting for koboldcpp + lmstudio
* lint
* support Groq token tracking
* HF token tracking
* token tracking for togetherai
* LiteLLM token tracking
* linting + Mitral token tracking support
* XAI token metric reporting
* native provider runner
* LocalAI token tracking
* Novita token tracking
* OpenRouter token tracking
* Apipie stream metrics
* textwebgenui token tracking
* perplexity token reporting
* ollama token reporting
* lint
* put back comment
* Rip out LC ollama wrapper and use official library
* patch images with new ollama lib
* improve ollama offline message
* fix image handling in ollama llm provider
* lint
* NVIDIA NIM token tracking
* update openai compatbility responses
* UI/UX show/hide metrics on click for user preference
* update bedrock client
---------
Co-authored-by: shatfield4 <seanhatfield5@gmail.com >
2024-12-16 14:31:17 -08:00
Timothy Carambat
e4a556d551
Add support for hiding sidebar ( #2809 )
...
* Add support for hiding sidebar
Support cmd/ctrl + shift +s for quick hide/show
* patch sidebar padding on collapse
* update Key for sidebar setting
2024-12-11 17:18:38 -08:00
Sean Hatfield
727d802779
Light/dark mode UI overhaul ( #2629 )
...
* Refactor workspace sidebar component styles (#2380 )
rely on css for conditional styles
* New sidebar colors (#2381 )
new sidebar colors
* Main container color update (#2382 )
* Dark mode setup themes (#2411 )
* setup generic tailwind theme + ability to add new themes
* add theme context
* use correct colors from design for sidebar + fix padding
* Settings sidebar UI updates (#2416 )
settings sidebar ui updates
* fix sidebar resizing/truncate issue on hover
* Dark mode chat window (#2443 )
* Support XLSX files (#2403 )
* support xlsx files
* lint
* create seperate docs for each xlsx sheet
* lint
* use node-xlsx pkg for parsing xslx files
* lint
* update error handling
---------
Co-authored-by: timothycarambat <rambat1010@gmail.com >
* wip chat window
* ux+ux improvements and update new colors
* chat window dark mode
* remove comment
---------
Co-authored-by: timothycarambat <rambat1010@gmail.com >
* Dark mode welcome page (#2444 )
* dark mode welcome page styles + refactor
* remove AI_BACKGROUND_COLOR and USER_BACKGROUND_COLOR constants
* Dark mode UI for admin and tools pages + mobile view improvements (#2454 )
* dark mode ui for admin and tools pages + mobile view improvements
* lint
* ai provider pages + options darkmode ui
* placeholder generic class
* appearance settings styles
* ai providers mobile margin
* dark mode styles for agent skills + experimental features
* mobile styles on security settings
* fine tune flow ui dark mode
* workspace settings page
* lint
* Dark mode onboarding (#2461 )
dark mode onboarding
* update all modals + normalize styles (#2471 )
* lint
* Dark mode privacy & experimental pages (#2479 )
* document watch + privacy pages ui + mobile modal darkmode
* lint
* Dark mode login screens (#2483 )
* multi-user auth screen ui update
* dark mode login screen + recovery key modals
* remove unneeded import
* Workspace preset commands modals dark mode (#2484 )
update workspace preset dark mode modal
* Document pinning modal ui update (#2490 )
document pinning modal ui update
* Experimental agreement modal dark mode (#2491 )
experimental agreement modal dark mode
* Serp options dark mode (#2492 )
serp options dark mode
* field fixes
* attempt light mode wip
* setting sidebar
* Toasts and threads
* main page content and privacy page
* force rewrite for light
* add border for light mode rightside content
* more fixes
* wip
* wip
* wip light mode implementation
* wip dark light mode file picker
* document picker light mode ui
* slight ui tweaks
* light mode fine tuning flow
* light mode tweaks + qa fixes
* fix md rendering of light mode + tooltip fixes
* lint
* qa bug fixes
* Add developer hook for theme
move provider to outmost layer
* qa light mode bug fixes
* Linting and hotfixes for UI
* Light mode to dev
* accept invite light mode ui fix
* Fix onboarding inputs in dark mode
* fix close icons
last minute items
* patch z-index on tooltips
* patch light mode citations
---------
Co-authored-by: timothycarambat <rambat1010@gmail.com >
2024-11-18 15:40:18 -08:00
Timothy Carambat
b701660f88
Frontend performance improvements ( #2627 )
...
* Frontend performance improvements
* test docker build
2024-11-13 11:11:13 -08:00
Roman Rojas
6a0f068bec
1603 speech to text hotkey ( #1771 )
...
* Added ctrl + enter hotkeys to init speach to text
* Ran linter
* Fixed speech transcript from being submitted twice when the user clicks the send button. Updated speech hotkeys.
* Added pulse animation to mic
* Fixed prompt double-send when clicking the send button or ending the TTS session.
* Fixed comment grammar
* Update mic hotkeys
---------
Co-authored-by: Timothy Carambat <rambat1010@gmail.com >
2024-08-07 12:00:01 -07:00
Timothy Carambat
38fc181238
Add multimodality support ( #2001 )
...
* Add multimodality support
* Add Bedrock, KoboldCpp,LocalAI,and TextWebGenUI multi-modal
* temp dev build
* patch bad import
* noscrolls for windows dnd
* noscrolls for windows dnd
* update README
* update README
* add multimodal check
2024-07-31 10:47:49 -07:00
Timothy Carambat
d877d2b7ad
Add drag-and-drop to chat window ( #1995 )
...
* Add drag-and-drop to chat window
* add uploader icon and remove empty space text when attachments are present
* color theme
* color update
2024-07-30 10:26:16 -07:00
Timothy Carambat
b30dc1c956
patch: Auto thread renaming ( #1636 )
2024-06-07 17:12:54 -07:00
Sean Hatfield
3c98d15c6a
[FEAT] Rename new threads on thread creation ( #1607 )
...
* make thread name 'Thread' when new thread is created
* implement auto generated thread titles
* implement truncated prompt as thread name
* move rename of thread into workspaceThread function
---------
Co-authored-by: Timothy Carambat <rambat1010@gmail.com >
2024-06-07 14:06:47 -07:00
Sean Hatfield
26c220503c
[FEAT] Edit message button ( #1392 )
...
* WIP edit message feature
* WIP edit message
* WIP editing messages feature
* Fix PFPs
TODO: Fix default user profile image
Add User and Assistant workspace response
* unset PFP changes for later PR
---------
Co-authored-by: timothycarambat <rambat1010@gmail.com >
2024-06-06 12:56:11 -07:00
Sean Hatfield
734c5a9e96
[FEAT] Implement regenerate response button ( #1341 )
...
* implement regenerate response button
* wip on rerenders
* remove function that was duplicate
* update delete-chats function
---------
Co-authored-by: timothycarambat <rambat1010@gmail.com >
2024-05-10 14:47:29 -07:00
timothycarambat
2345424b03
linting
2024-05-10 14:10:07 -07:00
timothycarambat
8f068b80d7
chat history performance improvements with memo
2024-05-10 14:09:25 -07:00
Timothy Carambat
a5bb77f97a
Agent support for @agent default agent inside workspace chat ( #1093 )
...
V1 of agent support via built-in `@agent` that can be invoked alongside normal workspace RAG chat.
2024-04-16 10:50:10 -07:00
Sean Hatfield
fd626b14b2
[FEAT] Improve UX of PromptInput ( #939 )
...
improve UX of PromptInput + cleanup props
2024-03-20 14:53:12 -07:00
Timothy Carambat
0e46a11cb6
Stop generation button during stream-response ( #892 )
...
* Stop generation button during stream-response
* add custom stop icon
* add stop to thread chats
2024-03-12 15:21:27 -07:00
Sean Hatfield
3cb8a80e8d
[STYLE] Implement new side bar menus ( #815 )
...
* WIP main sidebar designs
* hover states and active states for main sidebar
* main and settings sidebar UI updates & improve performance using Link instead of <a>
* update borders to match rest of UI in all pages
* update borders of all containers to match rest of UI
* remove unneeded conditional
* small changes to UI to conform to designs
Fix conditional hook render
* add check for roles to SettingsButton component and hide button from footer when in mobile
* typo
---------
Co-authored-by: timothycarambat <rambat1010@gmail.com >
2024-03-06 17:22:36 -08:00
Timothy Carambat
51dbff0dcb
Breakout Chat/Query mode as a workspace setting ( #734 )
...
Remove useless icons in prompt bar
Add chatMode column to workspaces that defaults to chat
Add UI for toggle of chat mode with hint
Update UI for workspace settings to match designs
2024-02-16 14:50:40 -08:00
Timothy Carambat
406732830f
Implement workspace threading that is backwards compatible ( #699 )
...
* Implement workspace thread that is compatible with legacy versions
* last touches
* comment on chat qty enforcement
2024-02-08 18:37:22 -08:00
Sean Hatfield
608f28d745
[FEAT] create custom prompt suggestions per workspace ( #664 )
...
* create custom suggested chat messages per workspace
* update how suggestedChats are passed to chat window
* update mobile styles
* update edit change handler
---------
Co-authored-by: timothycarambat <rambat1010@gmail.com >
2024-02-06 11:24:33 -08:00
Timothy Carambat
bd158ce7b1
[Feat] Query mode to return no-result when no context found ( #601 )
...
* Query mode to return no-result when no context found
* update default error for sync chat
* remove unnecessary type conversion
2024-01-16 09:32:51 -08:00
Sean Hatfield
5c3bb4b8cc
532 uiux add slash command modal ( #555 )
...
* WIP slash commands
* add slash command image
* WIP slash commands
* slash command menu feature complete
* move icons to slash command local
* update how slash command component works
* relint with new linter
* Finalize slash command input
Change empty workspace text layout
Patch dev unmount issues on Chatworkspace/index.jsx
---------
Co-authored-by: timothycarambat <rambat1010@gmail.com >
2024-01-09 13:07:09 -08:00
Timothy Carambat
f48e6b1a3e
chore: add @ as alias for frontend root ( #414 )
...
* chore: add @ as alias for frontend root
* fix: remove bad tag
2023-12-07 09:09:01 -08:00
Sean Hatfield
ca8bf52cce
Bug fixes ( #394 )
...
* fix black text for custom messages text
* fix file upload icon being stretched
* center github, docs, and discord icons in sidebar
* fix chat container being cut off on right side and tighter spacing between message
* fix default chat container being cut off on right side
* on create new workspace, take user to the workspace they just created instead of the home page
* add border to chat container and click outside user menu to close
* fix borders around all chat and settings containers to be consistent
* fix padding for default messages
* fix spacing between workspace items in sidebar
* fix margin around right side of chat, default, and settings containers to be the same as the left sidebar
---------
Co-authored-by: timothycarambat <rambat1010@gmail.com >
2023-11-27 15:09:55 -06:00
Timothy Carambat
c22c50cca8
Enable chat streaming for LLMs ( #354 )
...
* [Draft] Enable chat streaming for LLMs
* stream only, move sendChat to deprecated
* Update TODO deprecation comments
update console output color for streaming disabled
2023-11-13 15:07:30 -08:00
Timothy Carambat
708068a09e
AnythingLLM UI overhaul ( #278 )
...
* v2 Login screen (#254 )
* adding gradients for modal and sidebar
* adding font setup
* redesigned login screen for MultiUserAuth
* completed multi user mode login screen
* linting
* login screen for single user auth redesign complete
* created reusable gradient for login screen
---------
Co-authored-by: timothycarambat <rambat1010@gmail.com >
* v2 sidebar (#262 )
* adding gradients for modal and sidebar
* adding font setup
* redesigned login screen for MultiUserAuth
* completed multi user mode login screen
* linting
* login screen for single user auth redesign complete
* WIP sidebar redesign
* created reusable gradient for login screen
* remove dark mode items
* update new workspace button
* completed sidebar for desktop view
* add interactivity states
---------
Co-authored-by: timothycarambat <rambat1010@gmail.com >
* remove duplicated pkg
* v2 settings (#264 )
* adding gradients for modal and sidebar
* adding font setup
* redesigned login screen for MultiUserAuth
* completed multi user mode login screen
* linting
* login screen for single user auth redesign complete
* WIP sidebar redesign
* created reusable gradient for login screen
* remove dark mode items
* update new workspace button
* completed sidebar for desktop view
* WIP added colors/gradients to admin settings
* WIP fix discord logo import
* WIP settings redesign - added routes for general settings and restyled components
* WIP settings for LLM Preference, VectorDB, ExportImport
* settings menu UI complete WIP functionality
* settings fully functional/removed dark mode logo
* linting
* removing unneeded dependency
* Fix admin sidebar visibility
Fix API Keys location and work with single/mum
Fix Appearance location - WIP on funcitonality
* update api key page
* fix permissions for appearance
* Single user mode fixes
* fix multi user mode enabled
* fix import export
* Rename AdminSidebar to SettingsSidebar
* Fix mobile sidebar links
---------
Co-authored-by: timothycarambat <rambat1010@gmail.com >
* V2 user logout (#265 )
* Add user logout button
* hide other 3 dot button
* wrap admin routes
* V2 workspace modal (#267 )
Update new workspace modal
remove duplicate tailwind colors
* v2 Settings modal styles (#266 )
* EditUserModal styles complete
* workspaces modals styles complete
* create invite link modal styles complete
* create new api key modal styles complete
---------
Co-authored-by: timothycarambat <rambat1010@gmail.com >
* v2 Chats Redesign (#270 )
* fix default message for new workspace
* prompt input box ui redesign complete
* ui tweak to prompt input
* WIP chat msg redesign
* chat container and historical chat messages redesign
* manage workspace modal appears when clicking upload a document on empty workspace
* fixed loading skeleton styles
* citations redesign complete
* restyle pending chat and prompt reply components
* default chat messages styles updated
* linting
* update how chats are returned
---------
Co-authored-by: timothycarambat <rambat1010@gmail.com >
* Onboarding modal flow for first time setup (#274 )
* WIP onboarding modal flow
* onboarding flow complete and private route redirection for onboarding setep
* redirect to home on onboarding complete
* add onboarding redirect using paths.onboarding()
* Apply changes to auth flow, onboarding determination, and flows
* remove formref
---------
Co-authored-by: timothycarambat <rambat1010@gmail.com >
* v2 document picker (#275 )
* remove unneeded comments
* WIP document picker UI
* WIP basic UI complete for document picker tab and settings tab
* linting
* settings menu complete, document row WIP
* WIP document picker loading from localFiles
* WIP file picker logic
* refactoring document picker to work with backend
* WIP refactoring document picker
* WIP refactor document picker to work with backend
* file uploading with dropzone working
* WIP deleting file when not embedded
* WIP embeddings
* WIP embedding with temp button and hardcoded paths
* WIP placeholder for WorkspaceDirectory component
* WIP WorkspaceDirectory
* WIP
* sort workspaceDocs and availibleDocs complete
* added directories util
* add and remove document from ws working
* v2 document picker complete
* reference modal ui bug fixes
* truncate function bug fix
* ManageWorkspace modal bug fixes
* blocking mobile users modal for workspace settings
* mobile ui fixes
* linting
* ui padding fixes
* citation bug fixes
* code review changes
* debounce handlers
* change tempFile object to array
* selection count fix
* Convert workspace modal to div
Memo workspace settings
update conditional rendering of workspace settings
* Show no documents
---------
Co-authored-by: timothycarambat <rambat1010@gmail.com >
* mobile sidebar styles
* padding on Mobile view
mobile sidebar items
* UI touchup
* suggestion implementations
* CSS fixes and animation perfomance change to GPU accelerated and 60fps
* change will-change
* remove transitions from onboarding modals, simplify on-change handlers
* Swap onboarding to memoized components and debounce onchange handlers
* remove console log
* remove Avenir font
---------
Co-authored-by: Sean Hatfield <seanhatfield5@gmail.com >
2023-10-23 13:10:34 -07:00
Timothy Carambat
82d132427c
dump error message to frontend instead of generic error ( #114 )
2023-06-26 17:54:55 -07:00
Timothy Carambat
9d0becb2ee
Add chat/converstaion mode as the default chat mode for all Vector Databases ( #112 )
...
* Add chat/converstaion mode as the default chat mode
Show menu for toggling options for chat/query/reset command
Show chat status below input
resolves #61
* remove console logs
2023-06-26 15:08:47 -07:00
Timothy Carambat
3945a77290
Add mobile stylings to UI ( #75 )
...
* initial chat pages mobile stylings
* fix sidebar
* manage workspace modal styles
* mobile styles v1
2023-06-16 23:50:56 -07:00
timothycarambat
27c58541bd
inital commit ⚡
2023-06-03 19:28:07 -07:00