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
50.05k stars 7.15k forks source link

api /messages/{message_id}/suggested throw "Message Not Exists." error #7192

Closed Lyeluo closed 2 months ago

Lyeluo commented 2 months ago

Self Checks

Dify version

0.6.16

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

after a chat work flow ,use suggested api. i get error "Message Not Exists." i sure my message_id is exits and user is right . image

✔️ Expected Behavior

get some suggested by api

❌ Actual Behavior

{ "code": "bad_request", "message": "Message Not Exists.", "status": 400 }

crazywoola commented 2 months ago
        except services.errors.message.MessageNotExistsError:
            raise NotFound("Message Not Exists.")
        except SuggestedQuestionsAfterAnswerDisabledError:
            raise BadRequest("Message Not Exists.")

According to this implementation, I think you need to turn on the function in your application and publish it.