🧹 chore: Bump Agents Dependencies (#7525)

* chore: bump langchain dependencies

* chore: bump @librechat/agents to v2.4.36

* chore: bump @librechat/agents to v2.4.37

* refactor: simplify remark plugins in Markdown component with no conditional usage
This commit is contained in:
Danny Avila 2025-05-23 16:16:04 -04:00
parent 0dbbf7de04
commit afee1a2cbd
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
3 changed files with 364 additions and 209 deletions

View file

@ -43,12 +43,12 @@
"@google/generative-ai": "^0.23.0", "@google/generative-ai": "^0.23.0",
"@googleapis/youtube": "^20.0.0", "@googleapis/youtube": "^20.0.0",
"@keyv/redis": "^4.3.3", "@keyv/redis": "^4.3.3",
"@langchain/community": "^0.3.42", "@langchain/community": "^0.3.44",
"@langchain/core": "^0.3.55", "@langchain/core": "^0.3.57",
"@langchain/google-genai": "^0.2.8", "@langchain/google-genai": "^0.2.9",
"@langchain/google-vertexai": "^0.2.8", "@langchain/google-vertexai": "^0.2.9",
"@langchain/textsplitters": "^0.1.0", "@langchain/textsplitters": "^0.1.0",
"@librechat/agents": "^2.4.35", "@librechat/agents": "^2.4.37",
"@librechat/data-schemas": "*", "@librechat/data-schemas": "*",
"@waylaidwanderer/fetch-event-source": "^3.0.1", "@waylaidwanderer/fetch-event-source": "^3.0.1",
"axios": "^1.8.2", "axios": "^1.8.2",

View file

@ -12,7 +12,6 @@ import type { Pluggable } from 'unified';
import { import {
useToastContext, useToastContext,
ArtifactProvider, ArtifactProvider,
useSearchContext,
CodeBlockProvider, CodeBlockProvider,
useCodeBlockContext, useCodeBlockContext,
} from '~/Providers'; } from '~/Providers';
@ -175,7 +174,6 @@ type TContentProps = {
}; };
const Markdown = memo(({ content = '', isLatestMessage }: TContentProps) => { const Markdown = memo(({ content = '', isLatestMessage }: TContentProps) => {
const { searchResults } = useSearchContext();
const LaTeXParsing = useRecoilValue<boolean>(store.LaTeXParsing); const LaTeXParsing = useRecoilValue<boolean>(store.LaTeXParsing);
const isInitializing = content === ''; const isInitializing = content === '';
@ -201,22 +199,14 @@ const Markdown = memo(({ content = '', isLatestMessage }: TContentProps) => {
[], [],
); );
const searchTurns = useMemo(() => Object.keys(searchResults ?? {}).length, [searchResults]); const remarkPlugins: Pluggable[] = [
const remarkPlugins: Pluggable[] = useMemo(() => { supersub,
const plugins: Pluggable[] = [ remarkGfm,
supersub, remarkDirective,
remarkGfm, artifactPlugin,
remarkDirective, [remarkMath, { singleDollarTextMath: true }],
artifactPlugin, unicodeCitation,
[remarkMath, { singleDollarTextMath: true }], ];
];
if (searchTurns > 0) {
plugins.push(unicodeCitation);
}
return plugins;
}, [searchTurns]);
if (isInitializing) { if (isInitializing) {
return ( return (

537
package-lock.json generated

File diff suppressed because it is too large Load diff