[PR #1301] [MERGED] feat: advanced prompt backend #22987

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

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify/pull/1301
Author: @GarfieldDai
Created: 10/10/2023
Status: Merged
Merged: 10/12/2023
Merged by: @takatost

Base: mainHead: feat/advanced-prompt-backend


📝 Commits (10+)

  • 898062c feat: add model mode in text generation model list api
  • 45553f3 feat: add advanced prompt templates.
  • d92b9f6 feat: add advanced prompt templates.
  • a3b7122 feat: add advanced prompt templates.
  • d4c6416 feat: add dataset configs
  • d793259 feat: add advanced prompt templates.
  • 2c599ae Merge remote-tracking branch 'origin/main' into feat/advanced-prompt-backend
  • 56185d7 add baichuan.
  • 1d8b000 feat: remove chinese check
  • d1e4f36 fix: tests

📊 Changes

61 files changed (+762 additions, -576 deletions)

View changed files

📝 api/constants/model_template.py (+22 -2)
📝 api/controllers/console/__init__.py (+1 -1)
api/controllers/console/app/advanced_prompt_template.py (+26 -0)
📝 api/controllers/console/app/generator.py (+0 -30)
📝 api/controllers/console/app/message.py (+1 -1)
📝 api/controllers/web/message.py (+1 -1)
📝 api/core/completion.py (+26 -64)
📝 api/core/conversation_message_task.py (+11 -11)
📝 api/core/generator/llm_generator.py (+25 -83)
📝 api/core/indexing_runner.py (+2 -2)
📝 api/core/memory/read_only_conversation_token_db_buffer_shared_memory.py (+1 -1)
📝 api/core/model_providers/models/entity/message.py (+5 -5)
📝 api/core/model_providers/models/llm/base.py (+102 -17)
📝 api/core/model_providers/providers/anthropic_provider.py (+6 -1)
📝 api/core/model_providers/providers/azure_openai_provider.py (+16 -1)
📝 api/core/model_providers/providers/baichuan_provider.py (+5 -1)
📝 api/core/model_providers/providers/base.py (+23 -4)
📝 api/core/model_providers/providers/chatglm_provider.py (+6 -1)
📝 api/core/model_providers/providers/huggingface_hub_provider.py (+4 -1)
📝 api/core/model_providers/providers/localai_provider.py (+8 -1)

...and 41 more files

📄 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/1301 **Author:** [@GarfieldDai](https://github.com/GarfieldDai) **Created:** 10/10/2023 **Status:** ✅ Merged **Merged:** 10/12/2023 **Merged by:** [@takatost](https://github.com/takatost) **Base:** `main` ← **Head:** `feat/advanced-prompt-backend` --- ### 📝 Commits (10+) - [`898062c`](https://github.com/langgenius/dify/commit/898062c38d94ad6c40740854709baae5d012df0f) feat: add model mode in text generation model list api - [`45553f3`](https://github.com/langgenius/dify/commit/45553f3d965a6bc6f2f973ed6c22e02c4ba43443) feat: add advanced prompt templates. - [`d92b9f6`](https://github.com/langgenius/dify/commit/d92b9f6508bd96536b9b62492180c94248c835a3) feat: add advanced prompt templates. - [`a3b7122`](https://github.com/langgenius/dify/commit/a3b71227ae3c85072aec96461cb039e4e02883cd) feat: add advanced prompt templates. - [`d4c6416`](https://github.com/langgenius/dify/commit/d4c64169f2bde59a4c986c7e25bf7267194016a9) feat: add dataset configs - [`d793259`](https://github.com/langgenius/dify/commit/d793259e54d9ac90dc71b41834d43b6a5b21072c) feat: add advanced prompt templates. - [`2c599ae`](https://github.com/langgenius/dify/commit/2c599ae67286bc9b790bf4f40c0b05bcad4b8c10) Merge remote-tracking branch 'origin/main' into feat/advanced-prompt-backend - [`56185d7`](https://github.com/langgenius/dify/commit/56185d714470573808609b5bbc09ce8eb8fcf0a6) add baichuan. - [`1d8b000`](https://github.com/langgenius/dify/commit/1d8b0008a11a0654f24fdc27886c4203664a56bc) feat: remove chinese check - [`d1e4f36`](https://github.com/langgenius/dify/commit/d1e4f36aa3202a6a109bf99ed6b77cf2d491b33e) fix: tests ### 📊 Changes **61 files changed** (+762 additions, -576 deletions) <details> <summary>View changed files</summary> 📝 `api/constants/model_template.py` (+22 -2) 📝 `api/controllers/console/__init__.py` (+1 -1) ➕ `api/controllers/console/app/advanced_prompt_template.py` (+26 -0) 📝 `api/controllers/console/app/generator.py` (+0 -30) 📝 `api/controllers/console/app/message.py` (+1 -1) 📝 `api/controllers/web/message.py` (+1 -1) 📝 `api/core/completion.py` (+26 -64) 📝 `api/core/conversation_message_task.py` (+11 -11) 📝 `api/core/generator/llm_generator.py` (+25 -83) 📝 `api/core/indexing_runner.py` (+2 -2) 📝 `api/core/memory/read_only_conversation_token_db_buffer_shared_memory.py` (+1 -1) 📝 `api/core/model_providers/models/entity/message.py` (+5 -5) 📝 `api/core/model_providers/models/llm/base.py` (+102 -17) 📝 `api/core/model_providers/providers/anthropic_provider.py` (+6 -1) 📝 `api/core/model_providers/providers/azure_openai_provider.py` (+16 -1) 📝 `api/core/model_providers/providers/baichuan_provider.py` (+5 -1) 📝 `api/core/model_providers/providers/base.py` (+23 -4) 📝 `api/core/model_providers/providers/chatglm_provider.py` (+6 -1) 📝 `api/core/model_providers/providers/huggingface_hub_provider.py` (+4 -1) 📝 `api/core/model_providers/providers/localai_provider.py` (+8 -1) _...and 41 more files_ </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:20:12 -05:00
yindo closed this issue 2026-02-21 20:20:12 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#22987