Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

🏷️ fix: Ensure `modelLabel` Field Usage for ModelSpecs (custom/openAI endpoints) pt. 3 (#4228)

Danny Avilaf33e75e2ee61
diff --git a/api/server/services/Endpoints/custom/buildOptions.js b/api/server/services/Endpoints/custom/buildOptions.js
index 3458d317b0..add78470f5 100644
--- a/api/server/services/Endpoints/custom/buildOptions.js
+++ b/api/server/services/Endpoints/custom/buildOptions.js
@@ -3,6 +3,7 @@ const generateArtifactsPrompt = require('~/app/clients/prompts/artifacts');
const buildOptions = (endpoint, parsedBody, endpointType) => {
const {
+ modelLabel,
chatGptLabel,
promptPrefix,
maxContextTokens,
@@ -17,6 +18,7 @@ const buildOptions = (endpoint, parsedBody, endpointType) => {
const endpointOption = removeNullishValues({
endpoint,
endpointType,
+ modelLabel,
chatGptLabel,
promptPrefix,
resendFiles,
diff --git a/api/server/services/Endpoints/openAI/buildOptions.js b/api/server/services/Endpoints/openAI/buildOptions.js
index 9f305939fb..ff9cc484e7 100644
--- a/api/server/services/Endpoints/openAI/buildOptions.js
+++ b/api/server/services/Endpoints/openAI/buildOptions.js
@@ -3,6 +3,7 @@ const generateArtifactsPrompt = require('~/app/clients/prompts/artifacts');
const buildOptions = (endpoint, parsedBody) => {
const {
+ modelLabel,
chatGptLabel,
promptPrefix,
maxContextTokens,
@@ -17,6 +18,7 @@ const buildOptions = (endpoint, parsedBody) => {
const endpointOption = removeNullishValues({
endpoint,
+ modelLabel,
chatGptLabel,
promptPrefix,
resendFiles,