Skip to content

Commit b41743d

Browse files
committed
Add todo comments
1 parent 8f6ae24 commit b41743d

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

llm/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ async def recommend(req: RecommendRequest) -> RecommendResponse:
193193
favorite_meals_str = ", ".join(req.favorite_menu)
194194
todays_meals_str = ", ".join(req.todays_menu)
195195

196-
# Use the chain to generate recommendation
196+
# TODO Use the chain to generate recommendation
197197
recommendation = recommendation_chain.invoke({
198198
"favorite_menu": favorite_meals_str,
199199
"todays_menu": todays_meals_str

server/src/main/java/de/tum/aet/devops25/w07/client/LLMRestClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@ public LLMRestClient(RestClient.Builder builder, @Value("${llm.service.url:http:
2828
*/
2929
public String generateRecommendations(List<String> favoriteMenu, List<String> todaysMenu) {
3030
try {
31-
// Create request body
31+
// TODO Create request body
3232
RecommendRequest request = new RecommendRequest(favoriteMenu, todaysMenu);
3333

34-
// Make REST call
34+
// TODO Make REST call
3535
RecommendResponse response = restClient.post()
3636
.uri("/recommend")
3737
.contentType(MediaType.APPLICATION_JSON)
3838
.body(request)
3939
.retrieve()
4040
.body(RecommendResponse.class);
4141

42-
// Extract the recommendation
42+
// TODO Extract the recommendation
4343
return response != null ? response.recommendation() : "";
4444

4545
} catch (Exception e) {

server/src/main/java/de/tum/aet/devops25/w07/controller/RecommendationController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public ResponseEntity<Map<String, String>> getRecommendation(@PathVariable Strin
3939
//Get the today's menu from canteenService.getTodayMeals
4040
List<Dish> todaysMeals = canteenService.getTodayMeals("mensa-garching");
4141

42-
//call LLM service to get recommendation based on the user's favorites
42+
// TODO call LLM service to get recommendation based on the user's favorites
4343
String responseFromLLMService = llmRecommendationService.getRecommendationFromLLM(userPreferences.getFavoriteMeals(), todaysMeals);
4444

4545
if (responseFromLLMService.isEmpty()) {

server/src/main/java/de/tum/aet/devops25/w07/service/LLMRecommendationService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public String getRecommendationFromLLM(List<String> favoriteMeals, List<Dish> to
2929
.map(Dish::name)
3030
.collect(Collectors.toList());
3131

32-
// Call REST service
32+
// TODO Call REST service
3333
return llmRestClient.generateRecommendations(favoriteMeals, todayMealNames);
3434

3535
} catch (Exception e) {

0 commit comments

Comments
 (0)