Stronger prompting, UI update

This commit is contained in:
2026-03-12 20:17:25 +00:00
parent 3127ccbdbe
commit 48b015e095
10 changed files with 236 additions and 2 deletions

View File

@@ -97,4 +97,14 @@ public class RecipeController : ControllerBase
return Ok(myRecipes);
}
[HttpPost("consult")]
public async Task<IActionResult> Consult([FromBody] ChatRequestDto request)
{
if (string.IsNullOrWhiteSpace(request.Prompt))
return BadRequest("The Chef needs a prompt.");
var result = await _recipeService.ConsultChefAsync(request.Prompt);
return Ok(result);
}
}