mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-19 18:00:15 +01:00
20 lines
403 B
JavaScript
20 lines
403 B
JavaScript
|
|
const buildOptions = (endpoint, parsedBody) => {
|
||
|
|
// eslint-disable-next-line no-unused-vars
|
||
|
|
const { promptPrefix, assistant_id, iconURL, greeting, spec, ...rest } = parsedBody;
|
||
|
|
const endpointOption = {
|
||
|
|
endpoint,
|
||
|
|
promptPrefix,
|
||
|
|
assistant_id,
|
||
|
|
iconURL,
|
||
|
|
greeting,
|
||
|
|
spec,
|
||
|
|
modelOptions: {
|
||
|
|
...rest,
|
||
|
|
},
|
||
|
|
};
|
||
|
|
|
||
|
|
return endpointOption;
|
||
|
|
};
|
||
|
|
|
||
|
|
module.exports = buildOptions;
|