mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 18:30:15 +01:00
✨ feat: Add OpenAI Verbosity Parameter (#8929)
* WIP: Verbosity OpenAI Parameter * 🔧 chore: remove unused import of extractEnvVariable from parsers.ts * ✨ feat: add comprehensive tests for getOpenAIConfig and enhance verbosity handling * fix: Handling for maxTokens in GPT-5+ models and add corresponding tests * feat: Implement GPT-5+ model handling in processMemory function
This commit is contained in:
parent
486fe34a2b
commit
7147bce3c3
14 changed files with 989 additions and 6 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import {
|
||||
Verbosity,
|
||||
ImageDetail,
|
||||
EModelEndpoint,
|
||||
openAISettings,
|
||||
|
|
@ -286,6 +287,25 @@ const openAIParams: Record<string, SettingDefinition> = {
|
|||
optionType: 'model',
|
||||
columnSpan: 4,
|
||||
},
|
||||
verbosity: {
|
||||
key: 'verbosity',
|
||||
label: 'com_endpoint_verbosity',
|
||||
labelCode: true,
|
||||
description: 'com_endpoint_openai_verbosity',
|
||||
descriptionCode: true,
|
||||
type: 'enum',
|
||||
default: Verbosity.none,
|
||||
component: 'slider',
|
||||
options: [Verbosity.none, Verbosity.low, Verbosity.medium, Verbosity.high],
|
||||
enumMappings: {
|
||||
[Verbosity.none]: 'com_ui_none',
|
||||
[Verbosity.low]: 'com_ui_low',
|
||||
[Verbosity.medium]: 'com_ui_medium',
|
||||
[Verbosity.high]: 'com_ui_high',
|
||||
},
|
||||
optionType: 'model',
|
||||
columnSpan: 4,
|
||||
},
|
||||
disableStreaming: {
|
||||
key: 'disableStreaming',
|
||||
label: 'com_endpoint_disable_streaming_label',
|
||||
|
|
@ -641,6 +661,7 @@ const openAI: SettingsConfiguration = [
|
|||
openAIParams.reasoning_effort,
|
||||
openAIParams.useResponsesApi,
|
||||
openAIParams.reasoning_summary,
|
||||
openAIParams.verbosity,
|
||||
openAIParams.disableStreaming,
|
||||
];
|
||||
|
||||
|
|
@ -662,6 +683,7 @@ const openAICol2: SettingsConfiguration = [
|
|||
baseDefinitions.imageDetail,
|
||||
openAIParams.reasoning_effort,
|
||||
openAIParams.reasoning_summary,
|
||||
openAIParams.verbosity,
|
||||
openAIParams.useResponsesApi,
|
||||
openAIParams.web_search,
|
||||
openAIParams.disableStreaming,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue