mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
🏷️ fix: Ensure modelLabel Field Usage for ModelSpecs (custom/openAI endpoints) pt. 3 (#4228)
This commit is contained in:
parent
9e371d6157
commit
f33e75e2ee
2 changed files with 4 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ const generateArtifactsPrompt = require('~/app/clients/prompts/artifacts');
|
||||||
|
|
||||||
const buildOptions = (endpoint, parsedBody, endpointType) => {
|
const buildOptions = (endpoint, parsedBody, endpointType) => {
|
||||||
const {
|
const {
|
||||||
|
modelLabel,
|
||||||
chatGptLabel,
|
chatGptLabel,
|
||||||
promptPrefix,
|
promptPrefix,
|
||||||
maxContextTokens,
|
maxContextTokens,
|
||||||
|
|
@ -17,6 +18,7 @@ const buildOptions = (endpoint, parsedBody, endpointType) => {
|
||||||
const endpointOption = removeNullishValues({
|
const endpointOption = removeNullishValues({
|
||||||
endpoint,
|
endpoint,
|
||||||
endpointType,
|
endpointType,
|
||||||
|
modelLabel,
|
||||||
chatGptLabel,
|
chatGptLabel,
|
||||||
promptPrefix,
|
promptPrefix,
|
||||||
resendFiles,
|
resendFiles,
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ const generateArtifactsPrompt = require('~/app/clients/prompts/artifacts');
|
||||||
|
|
||||||
const buildOptions = (endpoint, parsedBody) => {
|
const buildOptions = (endpoint, parsedBody) => {
|
||||||
const {
|
const {
|
||||||
|
modelLabel,
|
||||||
chatGptLabel,
|
chatGptLabel,
|
||||||
promptPrefix,
|
promptPrefix,
|
||||||
maxContextTokens,
|
maxContextTokens,
|
||||||
|
|
@ -17,6 +18,7 @@ const buildOptions = (endpoint, parsedBody) => {
|
||||||
|
|
||||||
const endpointOption = removeNullishValues({
|
const endpointOption = removeNullishValues({
|
||||||
endpoint,
|
endpoint,
|
||||||
|
modelLabel,
|
||||||
chatGptLabel,
|
chatGptLabel,
|
||||||
promptPrefix,
|
promptPrefix,
|
||||||
resendFiles,
|
resendFiles,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue