Skip to content

Commit 4ef682b

Browse files
kth0910Copilot
andauthored
Update src/domain/ai/router.py
process_check_meal (and similar process functions) expect a string input but are receiving an AIInput object. Consider using data.input_text instead. Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a3d70d8 commit 4ef682b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/domain/ai/router.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ async def check_meal_inference(data: AIInput):
3434
- response: AI의 응답 텍스트
3535
"""
3636
try:
37-
return await process_check_meal(data)
38-
except Exception as e:
37+
return await process_check_meal(data.input_text)
3938
raise HTTPException(status_code=500, detail=str(e))
4039

4140
@router.post("/api/inference/induce_medicine")

0 commit comments

Comments
 (0)