mirror of
https://github.com/langgenius/dify.git
synced 2026-02-26 04:27:41 +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
|