mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-03-12 11:02:37 +01:00
⚠️ chore: Remove Deprecated forcePrompt setting (#11622)
- Removed `forcePrompt` parameter from various configuration files including `librechat.example.yaml`, `initialize.js`, `values.yaml`, and `initialize.ts`.
- This change simplifies the configuration by eliminating unused options, enhancing clarity and maintainability across the codebase.
This commit is contained in:
parent
f34052c6bb
commit
5eb0a3ad90
6 changed files with 0 additions and 12 deletions
|
|
@ -31,7 +31,6 @@ function buildCustomOptions(
|
|||
customParams: endpointConfig.customParams,
|
||||
titleConvo: endpointConfig.titleConvo,
|
||||
titleModel: endpointConfig.titleModel,
|
||||
forcePrompt: endpointConfig.forcePrompt,
|
||||
summaryModel: endpointConfig.summaryModel,
|
||||
modelDisplayLabel: endpointConfig.modelDisplayLabel,
|
||||
titleMethod: endpointConfig.titleMethod ?? 'completion',
|
||||
|
|
|
|||
|
|
@ -1300,7 +1300,6 @@ describe('getOpenAIConfig', () => {
|
|||
max_completion_tokens: 4000,
|
||||
},
|
||||
dropParams: ['frequency_penalty'],
|
||||
forcePrompt: false,
|
||||
modelOptions: {
|
||||
model: modelName,
|
||||
user: 'azure-user-123',
|
||||
|
|
@ -1395,7 +1394,6 @@ describe('getOpenAIConfig', () => {
|
|||
dropParams: ['presence_penalty'],
|
||||
titleConvo: true,
|
||||
titleModel: 'gpt-3.5-turbo',
|
||||
forcePrompt: false,
|
||||
summaryModel: 'gpt-3.5-turbo',
|
||||
modelDisplayLabel: 'Custom GPT-4',
|
||||
titleMethod: 'completion',
|
||||
|
|
@ -1414,7 +1412,6 @@ describe('getOpenAIConfig', () => {
|
|||
customParams: {},
|
||||
titleConvo: endpointConfig.titleConvo,
|
||||
titleModel: endpointConfig.titleModel,
|
||||
forcePrompt: endpointConfig.forcePrompt,
|
||||
summaryModel: endpointConfig.summaryModel,
|
||||
modelDisplayLabel: endpointConfig.modelDisplayLabel,
|
||||
titleMethod: endpointConfig.titleMethod,
|
||||
|
|
|
|||
|
|
@ -122,7 +122,6 @@ export const azureBaseSchema = z.object({
|
|||
assistants: z.boolean().optional(),
|
||||
addParams: z.record(z.any()).optional(),
|
||||
dropParams: z.array(z.string()).optional(),
|
||||
forcePrompt: z.boolean().optional(),
|
||||
version: z.string().optional(),
|
||||
baseURL: z.string().optional(),
|
||||
additionalHeaders: z.record(z.any()).optional(),
|
||||
|
|
@ -321,7 +320,6 @@ export const endpointSchema = baseEndpointSchema.merge(
|
|||
summarize: z.boolean().optional(),
|
||||
summaryModel: z.string().optional(),
|
||||
iconURL: z.string().optional(),
|
||||
forcePrompt: z.boolean().optional(),
|
||||
modelDisplayLabel: z.string().optional(),
|
||||
headers: z.record(z.any()).optional(),
|
||||
addParams: z.record(z.any()).optional(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue