Skip to content

Commit bbe76fd

Browse files
authored
🧹 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
1 parent 0981e76 commit bbe76fd

File tree

3 files changed

+364
-209
lines changed

3 files changed

+364
-209
lines changed

api/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@
4343
"@google/generative-ai": "^0.23.0",
4444
"@googleapis/youtube": "^20.0.0",
4545
"@keyv/redis": "^4.3.3",
46-
"@langchain/community": "^0.3.42",
47-
"@langchain/core": "^0.3.55",
48-
"@langchain/google-genai": "^0.2.8",
49-
"@langchain/google-vertexai": "^0.2.8",
46+
"@langchain/community": "^0.3.44",
47+
"@langchain/core": "^0.3.57",
48+
"@langchain/google-genai": "^0.2.9",
49+
"@langchain/google-vertexai": "^0.2.9",
5050
"@langchain/textsplitters": "^0.1.0",
51-
"@librechat/agents": "^2.4.35",
51+
"@librechat/agents": "^2.4.37",
5252
"@librechat/data-schemas": "*",
5353
"@waylaidwanderer/fetch-event-source": "^3.0.1",
5454
"axios": "^1.8.2",

client/src/components/Chat/Messages/Content/Markdown.tsx

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import type { Pluggable } from 'unified';
1212
import {
1313
useToastContext,
1414
ArtifactProvider,
15-
useSearchContext,
1615
CodeBlockProvider,
1716
useCodeBlockContext,
1817
} from '~/Providers';
@@ -175,7 +174,6 @@ type TContentProps = {
175174
};
176175

177176
const Markdown = memo(({ content = '', isLatestMessage }: TContentProps) => {
178-
const { searchResults } = useSearchContext();
179177
const LaTeXParsing = useRecoilValue<boolean>(store.LaTeXParsing);
180178
const isInitializing = content === '';
181179

@@ -201,22 +199,14 @@ const Markdown = memo(({ content = '', isLatestMessage }: TContentProps) => {
201199
[],
202200
);
203201

204-
const searchTurns = useMemo(() => Object.keys(searchResults ?? {}).length, [searchResults]);
205-
const remarkPlugins: Pluggable[] = useMemo(() => {
206-
const plugins: Pluggable[] = [
207-
supersub,
208-
remarkGfm,
209-
remarkDirective,
210-
artifactPlugin,
211-
[remarkMath, { singleDollarTextMath: true }],
212-
];
213-
214-
if (searchTurns > 0) {
215-
plugins.push(unicodeCitation);
216-
}
217-
218-
return plugins;
219-
}, [searchTurns]);
202+
const remarkPlugins: Pluggable[] = [
203+
supersub,
204+
remarkGfm,
205+
remarkDirective,
206+
artifactPlugin,
207+
[remarkMath, { singleDollarTextMath: true }],
208+
unicodeCitation,
209+
];
220210

221211
if (isInitializing) {
222212
return (

0 commit comments

Comments
 (0)