From c787515894b5cf38adec2cb6a07eaf0c0684fd99 Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Thu, 7 Aug 2025 15:59:06 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=A0=20feat:=20Add=20`minimal`=20Reason?= =?UTF-8?q?ing=20Effort=20option?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/locales/en/translation.json | 3 ++- package-lock.json | 2 +- packages/data-provider/package.json | 2 +- packages/data-provider/src/parameterSettings.ts | 2 ++ packages/data-provider/src/schemas.ts | 1 + 5 files changed, 7 insertions(+), 3 deletions(-) diff --git a/client/src/locales/en/translation.json b/client/src/locales/en/translation.json index 0cefd5a13..740edaa42 100644 --- a/client/src/locales/en/translation.json +++ b/client/src/locales/en/translation.json @@ -229,7 +229,7 @@ "com_endpoint_openai_max_tokens": "Optional 'max_tokens' field, representing the maximum number of tokens that can be generated in the chat completion. The total length of input tokens and generated tokens is limited by the models context length. You may experience errors if this number exceeds the max context tokens.", "com_endpoint_openai_pres": "Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.", "com_endpoint_openai_prompt_prefix_placeholder": "Set custom instructions to include in System Message. Default: none", - "com_endpoint_openai_reasoning_effort": "o1 and o3 models only: constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.", + "com_endpoint_openai_reasoning_effort": "Reasoning models only: constrains effort on reasoning. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response. 'Minimal' produces very few reasoning tokens for fastest time-to-first-token, especially well-suited for coding and instruction following.", "com_endpoint_openai_reasoning_summary": "Responses API only: A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. Set to none,auto, concise, or detailed.", "com_endpoint_openai_resend": "Resend all previously attached images. Note: this can significantly increase token cost and you may experience errors with many image attachments.", "com_endpoint_openai_resend_files": "Resend all previously attached files. Note: this will increase token cost and you may experience errors with many attachments.", @@ -860,6 +860,7 @@ "com_ui_mcp_update_var": "Update {{0}}", "com_ui_mcp_url": "MCP Server URL", "com_ui_medium": "Medium", + "com_ui_minimal": "Minimal", "com_ui_memories": "Memories", "com_ui_memories_allow_create": "Allow creating Memories", "com_ui_memories_allow_opt_out": "Allow users to opt out of Memories", diff --git a/package-lock.json b/package-lock.json index 4e3ad26eb..970c367fb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -51805,7 +51805,7 @@ }, "packages/data-provider": { "name": "librechat-data-provider", - "version": "0.7.903", + "version": "0.8.001", "license": "ISC", "dependencies": { "axios": "^1.8.2", diff --git a/packages/data-provider/package.json b/packages/data-provider/package.json index b54440a58..32d86c779 100644 --- a/packages/data-provider/package.json +++ b/packages/data-provider/package.json @@ -1,6 +1,6 @@ { "name": "librechat-data-provider", - "version": "0.7.903", + "version": "0.8.001", "description": "data services for librechat apps", "main": "dist/index.js", "module": "dist/index.es.js", diff --git a/packages/data-provider/src/parameterSettings.ts b/packages/data-provider/src/parameterSettings.ts index dee4e8b77..bebfa8377 100644 --- a/packages/data-provider/src/parameterSettings.ts +++ b/packages/data-provider/src/parameterSettings.ts @@ -221,12 +221,14 @@ const openAIParams: Record = { component: 'slider', options: [ ReasoningEffort.none, + ReasoningEffort.minimal, ReasoningEffort.low, ReasoningEffort.medium, ReasoningEffort.high, ], enumMappings: { [ReasoningEffort.none]: 'com_ui_none', + [ReasoningEffort.minimal]: 'com_ui_minimal', [ReasoningEffort.low]: 'com_ui_low', [ReasoningEffort.medium]: 'com_ui_medium', [ReasoningEffort.high]: 'com_ui_high', diff --git a/packages/data-provider/src/schemas.ts b/packages/data-provider/src/schemas.ts index 8ad8fc6d8..1b18ea24b 100644 --- a/packages/data-provider/src/schemas.ts +++ b/packages/data-provider/src/schemas.ts @@ -113,6 +113,7 @@ export enum ImageDetail { export enum ReasoningEffort { none = '', + minimal = 'minimal', low = 'low', medium = 'medium', high = 'high',