Skip to content

Commit bf0a84e

Browse files
authored
®️ feat: Support Rscript for Code Interpreter & recursionLimit for Agents (#5170)
* chore: bump @librechat/agents to v1.9.8 for rscript support * chore: fix @langchain/google-genai dep., match agents * chore: fix @langchain/google-vertexai to v0.1.5, match with agents * chore: bump @librechat/agents to v1.9.9 * chore: update @librechat/agents to v1.9.91 and @langchain/google-vertexai to v0.1.6 * chore: increase MAX_FILE_SIZE to 150MB for file uploads * chore: bump @librechat/agents to v1.9.92 * feat: support `recursionLimit` for agents * chore: update configuration version to 1.2.1 in librechat.yaml and config.ts * feat: add R language SVG icon to the assets and include it in ApiKeyDialog * feat: add support for new vision model 'o1' and exclude 'o1-mini'
1 parent 28966e3 commit bf0a84e

File tree

9 files changed

+46
-81
lines changed

9 files changed

+46
-81
lines changed

api/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@
4141
"@keyv/redis": "^2.8.1",
4242
"@langchain/community": "^0.3.14",
4343
"@langchain/core": "^0.3.18",
44-
"@langchain/google-genai": "^0.1.4",
45-
"@langchain/google-vertexai": "^0.1.4",
44+
"@langchain/google-genai": "^0.1.6",
45+
"@langchain/google-vertexai": "^0.1.6",
4646
"@langchain/textsplitters": "^0.1.0",
47-
"@librechat/agents": "^1.9.7",
47+
"@librechat/agents": "^1.9.92",
4848
"axios": "^1.7.7",
4949
"bcryptjs": "^2.4.3",
5050
"cheerio": "^1.0.0-rc.12",

api/server/controllers/agents/client.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ class AgentClient extends BaseClient {
494494
last_agent_index: this.agentConfigs?.size ?? 0,
495495
hide_sequential_outputs: this.options.agent.hide_sequential_outputs,
496496
},
497+
recursionLimit: this.options.req.app.locals[EModelEndpoint.agents]?.recursionLimit,
497498
signal: abortController.signal,
498499
streamMode: 'values',
499500
version: 'v2',

api/server/services/Files/Code/crud.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const axios = require('axios');
33
const FormData = require('form-data');
44
const { getCodeBaseURL } = require('@librechat/agents');
55

6-
const MAX_FILE_SIZE = 25 * 1024 * 1024;
6+
const MAX_FILE_SIZE = 150 * 1024 * 1024;
77

88
/**
99
* Retrieves a download stream for a specified file.

client/public/assets/r.svg

Lines changed: 1 addition & 0 deletions
Loading

client/src/components/SidePanel/Agents/Code/ApiKeyDialog.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export default function ApiKeyDialog({
3434
'cplusplus.svg',
3535
'php.svg',
3636
'fortran.svg',
37+
'r.svg',
3738
];
3839

3940
return (

librechat.example.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# https://www.librechat.ai/docs/configuration/librechat_yaml
33

44
# Configuration version (required)
5-
version: 1.2.0
5+
version: 1.2.1
66

77
# Cache settings: Set to true to enable caching
88
cache: true
@@ -149,6 +149,9 @@ endpoints:
149149
# # (optional) Assistant Capabilities available to all users. Omit the ones you wish to exclude. Defaults to list below.
150150
# capabilities: ["code_interpreter", "retrieval", "actions", "tools", "image_vision"]
151151
# agents:
152+
# (optional) Maximum recursion depth for agents, defaults to 25
153+
# recursionLimit: 50
154+
# (optional) Disable the builder interface for agents
152155
# disableBuilder: false
153156
# (optional) Agent Capabilities available to all users. Omit the ones you wish to exclude. Defaults to list below.
154157
# capabilities: ["execute_code", "file_search", "actions", "tools"]

package-lock.json

Lines changed: 30 additions & 73 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/data-provider/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "librechat-data-provider",
3-
"version": "0.7.67",
3+
"version": "0.7.68",
44
"description": "data services for librechat apps",
55
"main": "dist/index.js",
66
"module": "dist/index.es.js",

packages/data-provider/src/config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ export type TAssistantEndpoint = z.infer<typeof assistantEndpointSchema>;
210210
export const agentsEndpointSChema = baseEndpointSchema.merge(
211211
z.object({
212212
/* agents specific */
213+
recursionLimit: z.number().optional(),
213214
disableBuilder: z.boolean().optional(),
214215
capabilities: z
215216
.array(z.nativeEnum(AgentCapabilities))
@@ -739,6 +740,7 @@ export const supportsBalanceCheck = {
739740
};
740741

741742
export const visionModels = [
743+
'o1',
742744
'gpt-4o',
743745
'gpt-4o-mini',
744746
'gpt-4-turbo',
@@ -775,7 +777,7 @@ export function validateVisionModel({
775777
return false;
776778
}
777779

778-
if (model === 'gpt-4-turbo-preview') {
780+
if (model.includes('gpt-4-turbo-preview') || model.includes('o1-mini')) {
779781
return false;
780782
}
781783

@@ -1088,7 +1090,7 @@ export enum Constants {
10881090
/** Key for the app's version. */
10891091
VERSION = 'v0.7.6',
10901092
/** Key for the Custom Config's version (librechat.yaml). */
1091-
CONFIG_VERSION = '1.2.0',
1093+
CONFIG_VERSION = '1.2.1',
10921094
/** Standard value for the first message's `parentMessageId` value, to indicate no parent exists. */
10931095
NO_PARENT = '00000000-0000-0000-0000-000000000000',
10941096
/** Standard value for the initial conversationId before a request is sent */

0 commit comments

Comments
 (0)