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.17k stars 7.19k forks source link

yuque--create document,type if parameter book_id should be string #9814

Closed gqchen-dz closed 6 days ago

gqchen-dz commented 6 days ago

Self Checks

Dify version

0.10.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. Create a new workflow;
  2. Add nodes, Tools - yuque - Create Document;
  3. Tool parameter, book_id, type is number;
  4. But the knowledge base created in Yuque has a book_i of string type;
  5. so,Workflow running error.

✔️ Expected Behavior

change the type of book_id to string,so the yuque tool can run。

❌ Actual Behavior

Unable to fill in the parameter book_id , the workflow can‘t run.

dosubot[bot] commented 6 days ago

@gqchen-dz Hello there! I'm here to help you with any bugs, questions, or contributions. Let me know how I can assist you while you wait for a human maintainer.

The book_id parameter in the 'yuque - Create Document' tool is currently set to type number in the Dify codebase [1]. If the book_id in your Yuque knowledge base is a string, this mismatch would indeed cause issues when running the workflow. To resolve this, you would need to update the parameter type for book_id from number to string in the tool's configuration. This change should align the parameter type with the expected format from Yuque, allowing the workflow to run correctly.

To continue talking to Dosu, mention @dosu.