File size: 378 Bytes
aa2e6af
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;