mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
18 lines
390 B
JavaScript
18 lines
390 B
JavaScript
const buildOptions = (endpoint, parsedBody, endpointType) => {
|
|
const { chatGptLabel, promptPrefix, resendImages, imageDetail, ...rest } = parsedBody;
|
|
const endpointOption = {
|
|
endpoint,
|
|
endpointType,
|
|
chatGptLabel,
|
|
promptPrefix,
|
|
resendImages,
|
|
imageDetail,
|
|
modelOptions: {
|
|
...rest,
|
|
},
|
|
};
|
|
|
|
return endpointOption;
|
|
};
|
|
|
|
module.exports = buildOptions;
|