mirror of https://github.com/langgenius/dify.git
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. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| account.py | ||
| app.py | ||
| app_model_config.py | ||
| audio.py | ||
| base.py | ||
| chunk.py | ||
| conversation.py | ||
| dataset.py | ||
| document.py | ||
| file.py | ||
| index.py | ||
| llm.py | ||
| message.py | ||
| plugin.py | ||
| workflow_service.py | ||
| workspace.py | ||