langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
51.81k stars 7.51k forks source link

fix: avoid occurring at least one message error when there was no user message for Claude llm #8789

Open dwgeneral opened 1 month ago

dwgeneral commented 1 month ago

fix: avoid occurring at least one message error when there was no user message for Claude llm

Checklist:

[!IMPORTANT]
Please review the checklist below before submitting your pull request.

Description

The issue related is here

Fixes #8788

Type of Change

Testing Instructions

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

laipz8200 commented 1 month ago

Is this plan usable when configuring with a system prompt and a user prompt?

dwgeneral commented 1 month ago

Is this plan usable when configuring with a system prompt and a user prompt?

Yes, I tested the case too, that works fine as well.

Screenshot 2024-09-26 at 6 23 48 PM