mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 17:30:16 +01:00
🐛 fix: Safeguard against undefined length for addedEndpoints in modelSpecs processing (#6654)
This commit is contained in:
parent
9b6fa89622
commit
677423d82c
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ function processModelSpecs(endpoints, _modelSpecs, interfaceConfig) {
|
||||||
|
|
||||||
const customEndpoints = endpoints?.[EModelEndpoint.custom] ?? [];
|
const customEndpoints = endpoints?.[EModelEndpoint.custom] ?? [];
|
||||||
|
|
||||||
if (interfaceConfig.modelSelect !== true && _modelSpecs.addedEndpoints.length > 0) {
|
if (interfaceConfig.modelSelect !== true && (_modelSpecs.addedEndpoints?.length ?? 0) > 0) {
|
||||||
logger.warn(
|
logger.warn(
|
||||||
`To utilize \`addedEndpoints\`, which allows provider/model selections alongside model specs, set \`modelSelect: true\` in the interface configuration.
|
`To utilize \`addedEndpoints\`, which allows provider/model selections alongside model specs, set \`modelSelect: true\` in the interface configuration.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue