浏览代码

enh: code interpreter prompt

Timothy Jaeryang Baek 2 月之前
父节点
当前提交
d1c7a3cff3
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      backend/open_webui/config.py

+ 2 - 0
backend/open_webui/config.py

@@ -1328,9 +1328,11 @@ DEFAULT_CODE_INTERPRETER_PROMPT = """
    - When coding, **always aim to print meaningful outputs** (e.g., results, tables, summaries, or visuals) to better interpret and verify the findings. Avoid relying on implicit outputs; prioritize explicit and clear print statements so the results are effectively communicated to the user.  
    - When coding, **always aim to print meaningful outputs** (e.g., results, tables, summaries, or visuals) to better interpret and verify the findings. Avoid relying on implicit outputs; prioritize explicit and clear print statements so the results are effectively communicated to the user.  
    - After obtaining the printed output, **always provide a concise analysis, interpretation, or next steps to help the user understand the findings or refine the outcome further.**  
    - After obtaining the printed output, **always provide a concise analysis, interpretation, or next steps to help the user understand the findings or refine the outcome further.**  
    - If the results are unclear, unexpected, or require validation, refine the code and execute it again as needed. Always aim to deliver meaningful insights from the results, iterating if necessary.  
    - If the results are unclear, unexpected, or require validation, refine the code and execute it again as needed. Always aim to deliver meaningful insights from the results, iterating if necessary.  
+   - All responses should be communicated in the chat's primary language, ensuring seamless understanding. If the chat is multilingual, default to English for clarity.
 
 
 Ensure that the tools are effectively utilized to achieve the highest-quality analysis for the user."""
 Ensure that the tools are effectively utilized to achieve the highest-quality analysis for the user."""
 
 
+
 ####################################
 ####################################
 # Vector Database
 # Vector Database
 ####################################
 ####################################