[PR #121] [MERGED] Feat: optimize inner prompt #22312

Closed
opened 2026-02-21 20:18:41 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify/pull/121
Author: @takatost
Created: 5/20/2023
Status: Merged
Merged: 5/20/2023
Merged by: @takatost

Base: mainHead: feat/optimize-inner-prompt


📝 Commits (3)

  • 8250c9f feat: optimize inner prompt
  • 258d139 feat: optimize chat mode prompt to human message
  • 0bc9cc2 feat: remove enter after A: in chat mode prompt

📊 Changes

1 file changed (+29 additions, -27 deletions)

View changed files

📝 api/core/completion.py (+29 -27)

📄 Description

Avoid the appearance of [CONTEXT] in answers.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify/pull/121 **Author:** [@takatost](https://github.com/takatost) **Created:** 5/20/2023 **Status:** ✅ Merged **Merged:** 5/20/2023 **Merged by:** [@takatost](https://github.com/takatost) **Base:** `main` ← **Head:** `feat/optimize-inner-prompt` --- ### 📝 Commits (3) - [`8250c9f`](https://github.com/langgenius/dify/commit/8250c9fce095497bfe9e9579654c6694b0867380) feat: optimize inner prompt - [`258d139`](https://github.com/langgenius/dify/commit/258d13942001160a2afb1a98181b7f5bffa22bba) feat: optimize chat mode prompt to human message - [`0bc9cc2`](https://github.com/langgenius/dify/commit/0bc9cc2e01772394792840edbbfe3dbcdd7c8363) feat: remove enter after A: in chat mode prompt ### 📊 Changes **1 file changed** (+29 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `api/core/completion.py` (+29 -27) </details> ### 📄 Description Avoid the appearance of [CONTEXT] in answers. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-21 20:18:41 -05:00
yindo closed this issue 2026-02-21 20:18:41 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#22312