mirror of
https://github.com/langgenius/dify.git
synced 2026-03-05 15:47:06 +08:00
6 lines
129 B
Python
6 lines
129 B
Python
from contextlib import contextmanager
|
|
|
|
@contextmanager
|
|
def preserve_flask_contexts(flask_app=None, context_vars=None):
|
|
yield
|