style: move _on_hot_reload after all imports
This commit is contained in:
parent
87040915ee
commit
450c9009a5
@ -20,11 +20,6 @@ from .utils import (
|
||||
invalidate_uapi_cache,
|
||||
)
|
||||
|
||||
|
||||
def _on_hot_reload(data=None):
|
||||
"""Event handler for hot_reload — wraps invalidate_uapi_cache to accept dispatcher's data arg."""
|
||||
invalidate_uapi_cache()
|
||||
|
||||
from .llmclient import (
|
||||
inference_generator,
|
||||
inference
|
||||
@ -47,6 +42,12 @@ from .asyncinference import (
|
||||
get_today_asynctask_list
|
||||
)
|
||||
|
||||
|
||||
def _on_hot_reload(data=None):
|
||||
"""Event handler for hot_reload — wraps invalidate_uapi_cache to accept dispatcher's data arg."""
|
||||
invalidate_uapi_cache()
|
||||
|
||||
|
||||
def load_llmage():
|
||||
env = ServerEnv()
|
||||
env.llm_query_orders = llm_query_orders
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user