🐛 fix: Remove resendImages, imageDetail from modelOptions for Custom Endpoints (#1537)

This commit is contained in:
Danny Avila 2024-01-11 13:42:00 -05:00 committed by GitHub
parent 73f79a60f6
commit d7b4ed3079
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,10 +1,12 @@
const buildOptions = (endpoint, parsedBody, endpointType) => { const buildOptions = (endpoint, parsedBody, endpointType) => {
const { chatGptLabel, promptPrefix, ...rest } = parsedBody; const { chatGptLabel, promptPrefix, resendImages, imageDetail, ...rest } = parsedBody;
const endpointOption = { const endpointOption = {
endpoint, endpoint,
endpointType, endpointType,
chatGptLabel, chatGptLabel,
promptPrefix, promptPrefix,
resendImages,
imageDetail,
modelOptions: { modelOptions: {
...rest, ...rest,
}, },