chat / api /server /services /Endpoints /google /buildOptions.js
Zhitomir's picture
chat init
aa2e6af
Raw
History Blame Contribute Delete
378 Bytes
const buildOptions = (endpoint, parsedBody) => {
const { examples, modelLabel, promptPrefix, iconURL, greeting, spec, ...rest } = parsedBody;
const endpointOption = {
examples,
endpoint,
modelLabel,
promptPrefix,
iconURL,
greeting,
spec,
modelOptions: {
...rest,
},
};
return endpointOption;
};
module.exports = buildOptions;