Commit Graph

1835 Commits

Author SHA1 Message Date
Timothy Carambat
133b62f9f6
patch AWS credential issue in docker context (#4842)
path AWS credential issue in docker context
2026-01-08 17:06:49 -08:00
Ocheretovich
54b4b34b75
fix: validate chat message input (#4811)
* fix: validate chat message input

* fix: align message validation for thread stream-chat endpoint

---------

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
2026-01-08 17:00:15 -08:00
timothycarambat
ebe8b146f5 Update Sponsors README 2026-01-07 12:12:10 +00:00
Timothy Carambat
e287fab560
Merge commit from fork 2026-01-02 15:50:50 -08:00
Timothy Carambat
092b1b45f8
Upgrade YT Scraper (#4820) 2026-01-02 15:41:22 -08:00
Timothy Carambat
b2f49b6036
patch ESM import issue (#4819) 2026-01-02 14:11:13 -08:00
Marcello Fitton
4300639087
Refactor Managed Services in "Data Handling & Privacy" Onboarding Step to Use Their Privacy Policy URL (#4790)
* Refactor non-local LLM Provider, Vector Database, and Embedding Engine privacy information to use their policy URLs instead of descriptions

* Update LLM Provider, Embedding Engine, and Vector Database sections to include privacy policy links

* fix broken links, lint

* Update AstraDB privacy policy URL in onboarding flow

* Refactor AnythingLLM Privacy & Data page to show managed provider privacy policy URLs

* Update Mistral privacy policy URLs in onboarding flow for consistency

* Abstract privacy policies of providers into a reusable component | Refactor Privacy & Data Handling Step of onboarding flow to focus on solely rendering that step | Move provider privacy policy maps into constants.js

* Remove commented-out code for third-party provider privacy policies in Privacy and Data Handling component

* Update privacy policy descriptions for consistency by adding periods at the end of sentences in ProviderPrivacy component and constants.js

* rescope constants for providers

* extract default to external function, add loading state

---------

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
2025-12-18 15:09:34 -08:00
Sean Hatfield
6c1f8a38ce
Refactor localWhisper to use custom FFMPEGWrapper class (#4775)
* refactor localWhisper to use new custom FFMPEGWrapper class

* stub tests in github actions

* add back wavefile conversion to 16khz 32f to fix docker builds

* use afterEach for cleanup in ffmpeg tests

* remove unused FFMPEG_PATH env check

* use spawnSync for ffmpeg to capture and log output

* lint

* revert removal of try/catch around validateAudioFile for more helpful error msgs

* use readFileSync instead of createReadStream for less overhead

* change import to require for fix-path and stub import in tests

* refactor to singleton to preserve ffmpeg path
dev build

---------

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
2025-12-18 11:41:45 -08:00
Marcello Fitton
6b54bc4c57
Add Eslint Config in /frontend (#4785)
* Add local ESLint configuration and disable rules to allow for errorless state

* Remove unnecessary ESLint disable comments in AuthContext and usePromptInputStorage for cleaner code.

* Update eslint-plugin-react-hooks

* Configure prettier to work with eslint

* Removed trailing commas from eslint config

* Prettier to source code

* add a v2 lint script

* put back eslint-disable comments

* fix eslinter and prettier application
always apply --fix since we --write prettier, otherwise it fails

* precaution dev build

---------

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
2025-12-16 20:14:24 -08:00
Colin Perry
a1e8763e94
fix unnecessary scrollbar in workspace general appearance settings tab (#4791)
* fixed SuggestedChatMessages width styling

* ran yarn lint

---------

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
2025-12-16 19:39:15 -08:00
Timothy Carambat
bacd279e56 hanging lint 2025-12-16 19:38:06 -08:00
Marcello Fitton
c4f19cec0e
Refactor LLMPerformanceMonitor.measureStream() to Use Options Object Pattern (#4786)
* Refactor LLMPerformanceMonitor to use options object for measureStream parameters

* Refactor invocations of `measureStream` to use options arguments

* Change invocation of `measureStream` in anthropic provider to use options argument

---------

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
2025-12-16 13:10:09 -08:00
Marcello Fitton
556a750071
Update Google Search Option Description To Reference Documentation For Rate Limits (#4789)
* Update Google Search description to reference documentation for rate limits

* remove

---------

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
2025-12-16 13:05:18 -08:00
Timothy Carambat
664f466e3f
4601 log model on response (#4781)
* add model tag to chatCompletion

* add modelTag `model` to async streaming
keeps default arguments for prompt token calculation where applied via explict arg

* fix HF default arg

* render all performance metrics as available for backward compatibility
add `timestamp` to both sync/async chat methods

* extract metrics string to function
2025-12-14 14:46:55 -08:00
Irene Wang
bc3ad06de4
fix(devcontainer): forward ports 3000/3001 (#4779) 2025-12-14 13:50:37 -08:00
Marcello Fitton
856925451e
Upgrade MCP SDK to Latest (1.24.3) (#4773)
* upgrade mcp sdk to  latest (1.24.3)

* Upgrade MCP version floor in package.json to 1.24.3
2025-12-12 16:26:37 -08:00
Colin Perry
a8bdc00aba
Feat/cohere agent implementation (#4703)
* implement cohere agent support

* run yarn lint

* moderize Cohere
add supported langchain method
redo streaming since it was not working
looping of agent calls was not functioning

* change default model to real model tag
add case statement for model tag

* remove debug

* update default

* only whitelist known labels

---------

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
2025-12-12 16:25:58 -08:00
Marcello Fitton
62b45a76dc
Implement Global Error Boundary (#4765)
* Implement global error boundary

* add 404 page for generic path catching

* devbuild

---------

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
2025-12-12 15:08:12 -08:00
Marcello Fitton
c7b16c9aa8
Upgrade to Multer 2.0.0 (#4768)
* upgrade to multer 2.0.0

* bump dev

---------

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
2025-12-12 14:32:42 -08:00
Marcello Fitton
7faee90ecc
Add Auth Token to Ollama Embedding Client (#4766)
* Enhance OllamaEmbedder to support authentication by adding an authorization token in headers for client initialization.

* Add optional Auth Token input for Ollama embedding options

* move info elements

---------

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
2025-12-12 14:30:22 -08:00
Marcello Fitton
8aa78c2b75
Fix Stale User Session with Proper fetch Error Handling (#4770)
* add refresh user functionality

* prettier

* add eslint disable comment for exhaustive-deps warning in AuthContext to stop nagging about navigate func

* remove unused imports and fix typo

* handle unsafe parse of undefined for in-session user deleted

* Refactor refreshUser function to handle errors and return structured response. Update AuthProvider to manage user data based on success status.

* Remove console error logging from promise catch in System model for cleaner error handling.

* change status from 404 to 400 and valid to success

* Refactor error handling in AuthProvider's refreshUser logic to remove redundant catch block and streamline user session management on failure.

* prettier

* reorder clauses - return errors

* refactor
account for all user modes
dev build

---------

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
2025-12-12 11:43:20 -08:00
Sean Hatfield
c76b0708c3
Fix pagination bug in paperless-ngx data connector (#4757)
* iterate over all pages in paperless-ngx data connector

* add error handling and data validation

* refactor to handle edge cases and null values

* catch edge case to prevent infinite loop

---------

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
2025-12-12 10:23:32 -08:00
Sean Hatfield
c0c3ee6cfd
Refactor frontend legacy JSON.parse with safeJsonParse (#4759)
* replace all frontend legacy JSON.parse with safeJsonParse

* default collapsed sidebar menu on failed parse

* remove extra check on conditional render

* undo singular json parse

* add guard clause and return null for `userFromStorage`

* patch domainList

---------

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
2025-12-11 16:11:38 -08:00
Marcello Fitton
dbb79b6748
Migrate to bcryptjs (#4767)
* Replace bcrypt with bcryptjs across multiple files

* dev build

---------

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
2025-12-11 15:19:04 -08:00
Timothy Carambat
25a72f7175 Revert commit 8e0186f9ac - broken auth 2025-12-11 14:22:16 -08:00
Timothy Carambat
018e0cffbd
Lazy load Lancedb (#4764) 2025-12-11 09:50:52 -08:00
Timothy Carambat
baab837b58
Bump form-data version (#4761)
* Bump  packages

* dev tag

* dev tag rename
2025-12-10 19:29:46 -08:00
Marcello Fitton
a7da757c84
Migrate Azure OpenAI Integration To v1 API | Enable Streaming for Reasoning Models in Azure OpenAI Basic Inference Provider (#4744)
* Refactor Azure OpenAI integration to use OpenAI SDK and the v1 API | Enable streaming for Azure Open AI basic inference provider

* Add info tooltip to inform user about 'Model Type' form field

* Add 'model_type_tooltip' key to multiple language translations

* Validate AZURE_OPENAI_ENDPOINT in provider construction

* remove unused import, update error handler, rescope URL utils

---------

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
2025-12-10 18:56:55 -08:00
Timothy Carambat
692fa755ee
Bump expressJS from 4.18.2 -> 4.21.2 (#4760)
Bump expressJS from 4.18.2 -> 4.21.2 to patch body-parser CVE-2024-45590 as general maintence task'
2025-12-10 18:54:18 -08:00
Timothy Carambat
3800a68402
Docker base image upgrade to Ubuntu 24 (#4754)
* test base image bump

* patch frontend compilation due to Vite QEMU exception

* migrate all runners to arm64 to avoid QEMU slowdown

* add back layer cleanup

* remove layer cache fix
2025-12-10 13:50:24 -08:00
Marcello Fitton
8e0186f9ac
Fix stale user permissions in UI by refreshing user data on app load (#4751)
* add refresh user functionality

* prettier

* add eslint disable comment for exhaustive-deps warning in AuthContext to stop nagging about navigate func

* remove unused imports and fix typo

* handle unsafe parse of undefined for in-session user deleted

---------

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
2025-12-10 12:40:34 -08:00
Timothy Carambat
b620ca40ce Revert jws/cheerio dependency changes
Reverts:
- 815580ef (patch for cheerio dep)
- 50248163 (unpin resolution for jws due to node eng version)
- 17717d39 (jws bump)
2025-12-09 20:55:56 -08:00
Timothy Carambat
815580ef53 patch for cheerio dep 2025-12-09 20:39:25 -08:00
Timothy Carambat
50248163c4 unpin resolution for jws due to node eng version 2025-12-09 19:50:28 -08:00
Sean Hatfield
f8c6bbdd97
Refactor WorkspaceFileRow component (#4740)
* remove event listeners + useState on WorkspaceFileRow

* reduce complexity for render

---------

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
2025-12-09 16:57:58 -08:00
Timothy Carambat
17717d39ac
jws bump (#4748) 2025-12-09 15:44:09 -08:00
Timothy Carambat
d22b7fc4e2
Remove bcrypt from collector - not used (#4747) 2025-12-09 15:23:42 -08:00
Timothy Carambat
cc7c876efc
bump body-parser patch version (#4746) 2025-12-09 15:21:22 -08:00
Timothy Carambat
cd263337f8 fix: bump version tag 2025-12-09 13:18:51 -08:00
Timothy Carambat
5efaeab839 remove no longer needed patches folder 2025-12-09 13:01:55 -08:00
Timothy Carambat
b96988aae9
Dell model capability patch (#4719) 2025-12-05 13:31:15 -08:00
Sean Hatfield
f910609825
Fix similarity score not showing in citation UI for Astra, Qdrant, Weaviate (#4718)
* fix astra not showing similarity score in citations ui

* fix qdrant not showing similarity score in citations ui

* fix weaviate not showing similarity score in citations ui
2025-12-05 13:05:43 -08:00
Sean Hatfield
1e96acab9d
Fix broken citations in Zilliz Cloud (#4716)
fix broken citations in zilliz cloud vector db
2025-12-05 12:12:29 -08:00
Timothy Carambat
e8257941f7
Patch dev pupeeteer crash for MacOS 15 (#4713)
* Patch dev pupeeteer crash for MacOS 15

* simplify fix

* update comment

* reenable failover
2025-12-05 12:11:32 -08:00
Timothy Carambat
92752a2a15
Improve MCP functionality (#4709)
* Improve MCP functionality

* apply ANSI strip path

* attempt ARM build

* improve dockerfile IO build time and migrate to ARM build

* fix comment

* add ability to disable MCP cooldown feature

* update devbuild name

* move chromium arm build patch to CDN
2025-12-05 11:01:20 -08:00
Timothy Carambat
b54ac2de58
Modify ChromaCloud provider to check base limitations of chroma cloud before upsert to prevent 422 (#4705)
* Modify ChromaCloud provider to check base limitations of chroma cloud before upsert to prevent 422

* update comments
2025-12-03 10:41:44 -08:00
Timothy Carambat
ae2e3509f0 fix small typo on onboarding workspace page
fix .hash nav for mobile connection
2025-12-02 15:33:23 -08:00
Colin Perry
00e18887a8
fixed empty scroll track in citations dropdown (#4685)
* fixed empty scroll track

* use overflow-x-none instead of overflow-x-auto for citation list

* keep behaviour of x scroll, but hide scrollbar since it can be overflowing for no reason

---------

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
2025-12-02 15:29:16 -08:00
Sean Hatfield
99942159f6
Migrate to react router createBrowserRouter (#4693)
* migrate to react router createBrowserRouter

* dev build

---------

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
2025-12-02 15:26:55 -08:00
Marcello Fitton
8ffb7eb6e9
Store Chat Prompt Input Value in Local Storage (#4680)
* Add logic to save prompt input state to local storage and use as initial state on mount

* Synchronize prompt input state with parent component on mount

* lint

* Clear USER_PROMPT_INPUT_VALUE local storage value in all instances of auth clearing

* Remove USER_PROMPT_INPUT_VALUE local storage `removeItem` logic from excessive sources

* Refactor logic to cache prompt input value state by thread | abstract into a custom hook | rename localStorage key variables for clarity.

* Remove console log statement from usePromptInputStorage hook to clean up code.

* Update comments in usePromptInputStorage hook for clarity on localStorage handling

* Implement debounced localStorage updates in usePromptInputStorage hook to improve performance and prevent writing on every keystroke.

* Refactor localStorage handling in usePromptInputStorage hook to utilize safeJsonParse | Remove uneeeded comments

* Remove useEffect cleanup comment

---------

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
2025-12-02 13:45:26 -08:00