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