把星盘接口的计算和 HTTP 拆成两个类,离线入口不再伪造请求对象。
方法体未改。定向测试 383 通过;1 条校正回归在基线上同样失败,断言未改。快速门和全量 pytest 未跑。 Co-Authored-By: Grok (agent loop)
This commit is contained in:
co-authored by
Grok (agent loop)
parent
fbf04f0b5f
commit
c7350bcafb
@@ -15,9 +15,9 @@ for path in (ROOT, SCRIPTS_DIR):
|
||||
|
||||
|
||||
def execute_consultation_workflow(body: dict[str, Any], *, surface: str = "api") -> dict[str, Any]:
|
||||
from jyotish_api_server import JyotishAPIHandler, execute_consultation_workflow as _execute
|
||||
from jyotish_api_server import JyotishComputeService, execute_consultation_workflow as _execute
|
||||
|
||||
handler = JyotishAPIHandler.__new__(JyotishAPIHandler)
|
||||
handler = JyotishComputeService()
|
||||
return _execute(handler, body=body, surface=surface)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user