mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 17:30:16 +01:00
* chore: make frequent 'error' log into 'debug' log * feat: add maxContextTokens as a conversation field * refactor(settings): increase popover height * feat: add DynamicInputNumber and maxContextTokens to all endpoints that support it (frontend), fix schema * feat: maxContextTokens handling (backend) * style: revert popover height * feat: max tokens * fix: Ollama Vision firebase compatibility * fix: Ollama Vision, use message_file_map to determine multimodal request * refactor: bring back MobileNav and improve title styling
31 lines
496 B
JavaScript
31 lines
496 B
JavaScript
const buildOptions = (endpoint, parsedBody) => {
|
|
const {
|
|
chatGptLabel,
|
|
promptPrefix,
|
|
maxContextTokens,
|
|
resendFiles,
|
|
imageDetail,
|
|
iconURL,
|
|
greeting,
|
|
spec,
|
|
...rest
|
|
} = parsedBody;
|
|
const endpointOption = {
|
|
endpoint,
|
|
chatGptLabel,
|
|
promptPrefix,
|
|
resendFiles,
|
|
imageDetail,
|
|
iconURL,
|
|
greeting,
|
|
spec,
|
|
maxContextTokens,
|
|
modelOptions: {
|
|
...rest,
|
|
},
|
|
};
|
|
|
|
return endpointOption;
|
|
};
|
|
|
|
module.exports = buildOptions;
|