mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 06:00:56 +02: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;
|