Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: remove duplicated word in the code-regeneration prompt (#42368)

陈志谦a9227cf6f906
diff --git a/api/core/llm_generator/prompts.py b/api/core/llm_generator/prompts.py
index 97cd8a812a7..08722df595c 100644
--- a/api/core/llm_generator/prompts.py
+++ b/api/core/llm_generator/prompts.py
@@ -412,7 +412,7 @@ Both your input and output should be in JSON format.
When you are modifying the code, you should remember:
- Do not use print, this not work in dify sandbox.
- Do not try dangerous call like deleting files. It's PROHIBITED.
-- Do not use any library that is not built-in in with Python.
+- Do not use any library that is not built-in with Python.
- Get inputs from the parameters of the function and have explicit type annotations.
- Write proper imports at the top of the code.
- Use return statement to return the result.