danny-avila / LibreChat

Enhanced ChatGPT Clone: Features Anthropic, AWS, OpenAI, Assistants API, Azure, Groq, o1, GPT-4o, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, langchain, DALL-E-3, ChatGPT Plugins, OpenAI Functions, Secure Multi-User System, Presets, completely open-source for self-hosting. Actively in public development.
https://librechat.ai/
MIT License
19.33k stars 3.23k forks source link

[Bug]: Title generation failing with Pipelines #4748

Closed DarkIceXD closed 1 week ago

DarkIceXD commented 1 week ago

What happened?

Hello, i am trying to use pipelines within of Librechat and the chatting functionality works but title generation doesnt.

I found that the error is coming from here.

Steps to Reproduce

  1. Set up pipelines using docker.
  2. Install a basic pipeline e.g. return a string.
  3. Add this to your librechat.yaml
  • name: "Pipelines" apiKey: "0p3n-w3bu!" baseURL: "http://pipelines:9099/v1/chat/completions" models: default: ["foo"] titleConvo: true titleModel: "foo" titleMessageRole: "user" summarize: false summaryModel: "current_model" forcePrompt: false modelDisplayLabel: "Pipelines"
  1. send any question through librechat

What browsers are you seeing the problem on?

Firefox

Relevant log output

warn: [OpenAIClient.chatCompletion][finalChatCompletion] Aborted Message
warn: [OpenAIClient.chatCompletion][finalChatCompletion] API error
warn: [OpenAIClient.chatCompletion][stream] Unhandled error type
warn: [OpenAIClient.chatCompletion][finalChatCompletion] Unhandled error type
error: [OpenAIClient] Known OpenAI error: Error: missing role for choice 0
warn: [OpenAIClient] Chat completion response has no choices

Screenshots

No response

Code of Conduct