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.41k stars 3.24k forks source link

[Bug]: Chat title not generated properly when using `claude-3-5-haiku-20241022` as Anthropic title model #4652

Closed nkahnfr closed 3 weeks ago

nkahnfr commented 3 weeks ago

What happened?

Expected title: one generated based on the chat prompt.

Actual title: NO TOOL INVOCATION: <function_calls><invoke name="submit_title"><parameter name="title">AI Search Capabilities Explained</parameter></invoke>

That text seems to be generated by the parseParamFromPrompt function in the api/app/clients/prompts/titlePrompts.js file.

Steps to Reproduce

  1. Set ANTHROPIC_TITLE_MODEL option to claude-3-5-haiku-latest or claude-3-5-haiku-20241022 in the .env file.
  2. Start a new chat using any Anthropic's model.

What browsers are you seeing the problem on?

Chrome

Relevant log output

No response

Screenshots

Capture d’écran 2024-11-06 à 19 20 13

Code of Conduct

nkahnfr commented 3 weeks ago

Thanks @danny-avila 🙏