mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-08-03 22:32:42 +00:00
📐 chore: Update extractDefaultParams to return undefined for invalid input
This commit is contained in:
parent
970a7510bb
commit
a49c509ebc
1 changed files with 2 additions and 2 deletions
|
|
@ -83,9 +83,9 @@ function hasReasoningParams({
|
|||
*/
|
||||
export function extractDefaultParams(
|
||||
paramDefinitions?: Partial<SettingDefinition>[],
|
||||
): Record<string, unknown> {
|
||||
): Record<string, unknown> | undefined {
|
||||
if (!paramDefinitions || !Array.isArray(paramDefinitions)) {
|
||||
return {};
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const defaults: Record<string, unknown> = {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue