mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
🧹 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:
parent
0dbbf7de04
commit
afee1a2cbd
3 changed files with 364 additions and 209 deletions
|
|
@ -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",
|
||||||
|
|
|
||||||
|
|
@ -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,23 +199,15 @@ const Markdown = memo(({ content = '', isLatestMessage }: TContentProps) => {
|
||||||
[],
|
[],
|
||||||
);
|
);
|
||||||
|
|
||||||
const searchTurns = useMemo(() => Object.keys(searchResults ?? {}).length, [searchResults]);
|
const remarkPlugins: Pluggable[] = [
|
||||||
const remarkPlugins: Pluggable[] = useMemo(() => {
|
|
||||||
const plugins: Pluggable[] = [
|
|
||||||
supersub,
|
supersub,
|
||||||
remarkGfm,
|
remarkGfm,
|
||||||
remarkDirective,
|
remarkDirective,
|
||||||
artifactPlugin,
|
artifactPlugin,
|
||||||
[remarkMath, { singleDollarTextMath: true }],
|
[remarkMath, { singleDollarTextMath: true }],
|
||||||
|
unicodeCitation,
|
||||||
];
|
];
|
||||||
|
|
||||||
if (searchTurns > 0) {
|
|
||||||
plugins.push(unicodeCitation);
|
|
||||||
}
|
|
||||||
|
|
||||||
return plugins;
|
|
||||||
}, [searchTurns]);
|
|
||||||
|
|
||||||
if (isInitializing) {
|
if (isInitializing) {
|
||||||
return (
|
return (
|
||||||
<div className="absolute">
|
<div className="absolute">
|
||||||
|
|
|
||||||
537
package-lock.json
generated
537
package-lock.json
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue