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: Update Title Message Role for Ollama if None Provided (#3663)

Danny Avilaf8a5dad26585
diff --git a/api/app/clients/OpenAIClient.js b/api/app/clients/OpenAIClient.js
index ccc5165fc7..ddb8b7c42d 100644
--- a/api/app/clients/OpenAIClient.js
+++ b/api/app/clients/OpenAIClient.js
@@ -827,7 +827,7 @@ class OpenAIClient extends BaseClient {
const instructionsPayload = [
{
- role: this.options.titleMessageRole ?? 'system',
+ role: this.options.titleMessageRole ?? (this.isOllama ? 'user' : 'system'),
content: `Please generate ${titleInstruction}
${convo}