mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
16 lines
350 B
JavaScript
16 lines
350 B
JavaScript
|
|
const buildOptions = (endpoint, parsedBody) => {
|
||
|
|
// eslint-disable-next-line no-unused-vars
|
||
|
|
const { promptPrefix, chatGptLabel, resendImages, imageDetail, ...rest } = parsedBody;
|
||
|
|
const endpointOption = {
|
||
|
|
endpoint,
|
||
|
|
promptPrefix,
|
||
|
|
modelOptions: {
|
||
|
|
...rest,
|
||
|
|
},
|
||
|
|
};
|
||
|
|
|
||
|
|
return endpointOption;
|
||
|
|
};
|
||
|
|
|
||
|
|
module.exports = buildOptions;
|