[PR #460] [MERGED] feat: optimize template parse #22502

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

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify/pull/460
Author: @takatost
Created: 6/27/2023
Status: Merged
Merged: 6/27/2023
Merged by: @takatost

Base: mainHead: feat/optimize-template-parse


📝 Commits (2)

  • 3f247ef feat: optimize template parse
  • f16c813 fix: parse error in chat history

📊 Changes

7 files changed (+83 additions, -44 deletions)

View changed files

📝 api/core/__init__.py (+0 -4)
📝 api/core/completion.py (+24 -23)
📝 api/core/conversation_message_task.py (+3 -4)
📝 api/core/generator/llm_generator.py (+4 -3)
📝 api/core/prompt/prompt_builder.py (+7 -6)
📝 api/core/prompt/prompt_template.py (+41 -0)
📝 api/core/prompt/prompts.py (+4 -4)

📄 Description

No description provided


🔄 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/460 **Author:** [@takatost](https://github.com/takatost) **Created:** 6/27/2023 **Status:** ✅ Merged **Merged:** 6/27/2023 **Merged by:** [@takatost](https://github.com/takatost) **Base:** `main` ← **Head:** `feat/optimize-template-parse` --- ### 📝 Commits (2) - [`3f247ef`](https://github.com/langgenius/dify/commit/3f247ef20eb63d96afccf22380023653f4c0a2db) feat: optimize template parse - [`f16c813`](https://github.com/langgenius/dify/commit/f16c8135041faa4b3e0e9c636596015209e4bcc5) fix: parse error in chat history ### 📊 Changes **7 files changed** (+83 additions, -44 deletions) <details> <summary>View changed files</summary> 📝 `api/core/__init__.py` (+0 -4) 📝 `api/core/completion.py` (+24 -23) 📝 `api/core/conversation_message_task.py` (+3 -4) 📝 `api/core/generator/llm_generator.py` (+4 -3) 📝 `api/core/prompt/prompt_builder.py` (+7 -6) 📝 `api/core/prompt/prompt_template.py` (+41 -0) 📝 `api/core/prompt/prompts.py` (+4 -4) </details> ### 📄 Description _No description provided_ --- <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:19:07 -05:00
yindo closed this issue 2026-02-21 20:19:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#22502