[PR #1227] [MERGED] feat: support binding context var #22961

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

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify/pull/1227
Author: @GarfieldDai
Created: 9/24/2023
Status: Merged
Merged: 9/27/2023
Merged by: @GarfieldDai

Base: mainHead: feat/support-binding-context-var


📝 Commits (10+)

📊 Changes

44 files changed (+711 additions, -77 deletions)

View changed files

📝 api/commands.py (+71 -0)
📝 api/controllers/console/app/app.py (+3 -1)
📝 api/controllers/console/app/model_config.py (+2 -1)
📝 api/core/completion.py (+12 -3)
api/migrations/versions/ab23c11305d4_add_dataset_query_variable_at_app_model_.py (+31 -0)
📝 api/models/model.py (+4 -0)
📝 api/services/app_model_config_service.py (+21 -1)
📝 api/services/completion_service.py (+2 -1)
web/app/components/app/configuration/base/icons/var-icon.tsx (+0 -11)
web/app/components/app/configuration/base/warning-mask/cannot-query-dataset.tsx (+31 -0)
📝 web/app/components/app/configuration/base/warning-mask/formatting-changed.tsx (+4 -3)
📝 web/app/components/app/configuration/config-var/index.tsx (+45 -9)
📝 web/app/components/app/configuration/config-var/input-type-icon.tsx (+10 -15)
web/app/components/app/configuration/dataset-config/context-var/index.tsx (+39 -0)
web/app/components/app/configuration/dataset-config/context-var/style.module.css (+3 -0)
web/app/components/app/configuration/dataset-config/context-var/var-picker.tsx (+99 -0)
📝 web/app/components/app/configuration/dataset-config/index.tsx (+37 -2)
📝 web/app/components/app/configuration/debug/index.tsx (+21 -2)
📝 web/app/components/app/configuration/index.tsx (+13 -4)
📝 web/app/components/app/configuration/prompt-value-panel/index.tsx (+2 -2)

...and 24 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/1227 **Author:** [@GarfieldDai](https://github.com/GarfieldDai) **Created:** 9/24/2023 **Status:** ✅ Merged **Merged:** 9/27/2023 **Merged by:** [@GarfieldDai](https://github.com/GarfieldDai) **Base:** `main` ← **Head:** `feat/support-binding-context-var` --- ### 📝 Commits (10+) - [`2f2a22a`](https://github.com/langgenius/dify/commit/2f2a22a5ff65f9322ca0c56b545c608506aaa118) feat: context var picker - [`aa44dc6`](https://github.com/langgenius/dify/commit/aa44dc6489c98d33d5cff56defd6a31bdc9e260d) feat: setContext var - [`820077a`](https://github.com/langgenius/dify/commit/820077ae932eaff5bc4b3a1079817c78199634dd) chore: back key name - [`40b94af`](https://github.com/langgenius/dify/commit/40b94afa017688a8dc8dcf27b7059286ac600bb8) feat: query var label - [`aa39c32`](https://github.com/langgenius/dify/commit/aa39c3278b7f5c31f791d2e5ce888556865c75cb) dropdonwn - [`e163048`](https://github.com/langgenius/dify/commit/e163048051aabbd846abd40c011e821f80d1a0c5) feat: no var wrap - [`543cb1e`](https://github.com/langgenius/dify/commit/543cb1eb5ca2395b893cb1f86bdc60c01a5a0f35) feat: can not query mask - [`f33cd0c`](https://github.com/langgenius/dify/commit/f33cd0c23983a6646dfc0f532e84d18f237c6d99) feat: save check has set context var - [`ec0469c`](https://github.com/langgenius/dify/commit/ec0469c818f34d68ee7594752723d6797f1d793a) feat: fetch and save config var - [`ee5f902`](https://github.com/langgenius/dify/commit/ee5f902b071ff42af23978e267f776aabd55f74a) feat: not select context var select var ui ### 📊 Changes **44 files changed** (+711 additions, -77 deletions) <details> <summary>View changed files</summary> 📝 `api/commands.py` (+71 -0) 📝 `api/controllers/console/app/app.py` (+3 -1) 📝 `api/controllers/console/app/model_config.py` (+2 -1) 📝 `api/core/completion.py` (+12 -3) ➕ `api/migrations/versions/ab23c11305d4_add_dataset_query_variable_at_app_model_.py` (+31 -0) 📝 `api/models/model.py` (+4 -0) 📝 `api/services/app_model_config_service.py` (+21 -1) 📝 `api/services/completion_service.py` (+2 -1) ➖ `web/app/components/app/configuration/base/icons/var-icon.tsx` (+0 -11) ➕ `web/app/components/app/configuration/base/warning-mask/cannot-query-dataset.tsx` (+31 -0) 📝 `web/app/components/app/configuration/base/warning-mask/formatting-changed.tsx` (+4 -3) 📝 `web/app/components/app/configuration/config-var/index.tsx` (+45 -9) 📝 `web/app/components/app/configuration/config-var/input-type-icon.tsx` (+10 -15) ➕ `web/app/components/app/configuration/dataset-config/context-var/index.tsx` (+39 -0) ➕ `web/app/components/app/configuration/dataset-config/context-var/style.module.css` (+3 -0) ➕ `web/app/components/app/configuration/dataset-config/context-var/var-picker.tsx` (+99 -0) 📝 `web/app/components/app/configuration/dataset-config/index.tsx` (+37 -2) 📝 `web/app/components/app/configuration/debug/index.tsx` (+21 -2) 📝 `web/app/components/app/configuration/index.tsx` (+13 -4) 📝 `web/app/components/app/configuration/prompt-value-panel/index.tsx` (+2 -2) _...and 24 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:08 -05:00
yindo closed this issue 2026-02-21 20:20:08 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#22961