- import astrai.inference 不再在模块加载时创建 FastAPI 实例 - 路由移至 APIRouter;get_app() 首次调用时懒构造单例 - _create_engine 和 run_server 的 param_path 改为必填 - 更新测试改用 get_app() 替代模块级 app |
||
|---|---|---|
| .. | ||
| api | ||
| core | ||
| __init__.py | ||
| engine.py | ||
| sample.py | ||
- import astrai.inference 不再在模块加载时创建 FastAPI 实例 - 路由移至 APIRouter;get_app() 首次调用时懒构造单例 - _create_engine 和 run_server 的 param_path 改为必填 - 更新测试改用 get_app() 替代模块级 app |
||
|---|---|---|
| .. | ||
| api | ||
| core | ||
| __init__.py | ||
| engine.py | ||
| sample.py | ||