diff --git a/app/api/v1/compare.py b/app/api/v1/compare.py index 1da32dd..2a3b5f3 100644 --- a/app/api/v1/compare.py +++ b/app/api/v1/compare.py @@ -83,6 +83,13 @@ async def intent_recognize(request: Request) -> dict[str, Any]: return await _passthrough(request, "/api/intent/recognize") +@router.post("/intent/step", summary="外卖比价 Phase 1 多帧意图识别 (透传到 pricebot, 仅淘宝源)") +async def intent_step(request: Request) -> dict[str, Any]: + # 多帧版意图识别(展开+滚动采集→提取): 循环调用直到 done(done 帧顶层带 + # result+calibration)。目前仅淘宝源走这条, 其它源走上面单次 /intent/recognize。 + return await _passthrough(request, "/api/intent/step") + + @router.post("/price/step", summary="外卖比价 Phase 2 步进 (透传到 pricebot)") async def price_step(request: Request) -> dict[str, Any]: return await _passthrough(request, "/api/price/step")