mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
🐛 fix: Remove resendImages, imageDetail from modelOptions for Custom Endpoints (#1537)
This commit is contained in:
parent
73f79a60f6
commit
d7b4ed3079
1 changed files with 3 additions and 1 deletions
|
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue