dify/api/services/errors
QuantumGhost 81d9a9d00d feat(api): limit conversation variable description length
Previously, conversation variable descriptions had no length limit, causing errors
when debugging chatflows. These descriptions are saved as draft variable descriptions
during debugging, which have a 256-character limit. Variables with descriptions
exceeding this limit could not be saved, resulting in 500 errors and "Internal
Server Error" messages during chatflow debugging.

This commit implements description length limits for conversation variables:

- New chatflows: Hard limit of 256 characters for descriptions. Longer
  descriptions are rejected and prevent chatflow saving.
- Existing chatflows: If all conversation variable descriptions are under
  256 characters, the same limit applies as new chatflows. Otherwise, no limit
  is enforced to maintain backward compatibility.
2025-09-11 17:42:30 +08:00
..
__init__.py fix: delete some dead code using vulture (#20999) 2025-06-16 12:07:41 +08:00
account.py fix: delete some dead code using vulture (#20999) 2025-06-16 12:07:41 +08:00
app.py feat: support workflow version specification in workflow and chat APIs (#23188) 2025-08-03 16:27:12 +08:00
app_model_config.py feat: add multi model credentials (#24451) 2025-08-25 16:12:29 +08:00
audio.py tts add voice choose (#2391) 2024-02-15 22:41:18 +08:00
base.py fix: enhance file upload error handling and update base error class (#12132) 2024-12-26 23:31:29 +08:00
chunk.py Feat/support parent child chunk (#12092) 2024-12-25 19:49:07 +08:00
conversation.py [Enhancement] Allow modify conversation variable via api (#23112) 2025-08-01 09:34:56 +08:00
dataset.py refactor: Delete the dataset to verify whether it is in use (#5112) 2024-06-14 03:25:38 +08:00
document.py Initial commit 2023-05-15 08:51:32 +08:00
file.py Feat/dataset service api (#1245) 2023-09-27 16:06:32 +08:00
index.py Initial commit 2023-05-15 08:51:32 +08:00
llm.py remove bare list, dict, Sequence, None, Any (#25058) 2025-09-06 03:32:23 +08:00
message.py Initial commit 2023-05-15 08:51:32 +08:00
plugin.py Feat/plugin install scope management (#19963) 2025-06-18 16:25:00 +08:00
workflow_service.py feat(api): limit conversation variable description length 2025-09-11 17:42:30 +08:00
workspace.py E-300 (#19726) 2025-05-20 12:07:50 +08:00