mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
* fix(azure): fix regex to prevent edge cases * fix(assistants): pass relevant endpoint options to avoid sending them to API
16 lines
341 B
JavaScript
16 lines
341 B
JavaScript
const buildOptions = (endpoint, parsedBody) => {
|
|
// eslint-disable-next-line no-unused-vars
|
|
const { promptPrefix, assistant_id, ...rest } = parsedBody;
|
|
const endpointOption = {
|
|
endpoint,
|
|
promptPrefix,
|
|
assistant_id,
|
|
modelOptions: {
|
|
...rest,
|
|
},
|
|
};
|
|
|
|
return endpointOption;
|
|
};
|
|
|
|
module.exports = buildOptions;
|