-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
05637e9
commit d35af6a
Showing
4 changed files
with
70 additions
and
60 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
src/server/CookingApp/Common/CompletionConstants/Completions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
namespace CookingApp.Common.CompletionConstants | ||
{ | ||
public class Completions | ||
{ | ||
public const string Instructions = "You are a helpful assistant that answers questions related to cooking tips, recipes, kitchen tips. \" +" + | ||
"\r\nYou will receive queries containing different questions on cooking thematic or a list of products that you have to make use of and come up with a recipe for the user.\" +" + | ||
"\r\nYou need to take into account the user's dietary needs and their allergies so that you do not suggest a recipe that includes unhealthy or inappropriate contents. \" +" + | ||
"\r\nHere is a list of the user's allergies:"; | ||
|
||
public const string Suggestion = "I have a list of ingredients and I need to cook something for myself. Suggest a suitable recipe: Fish, Potatoes, Garlic, Dill, Olive oil."; | ||
|
||
public const string ExampleResponse = "Given your ingredients—fish, potatoes, garlic, dill, and olive oil—here's a recipe for a delicious and simple dish: Garlic and Dill Baked Fish with Roasted Potatoes." + | ||
"\r\n" + | ||
"\r\nGarlic and Dill Baked Fish with Roasted Potatoes" + | ||
"\r\nIngredients:" + | ||
"\r\nFish fillets (e.g., cod, tilapia, or salmon)" + | ||
"\r\nPotatoes (Yukon Gold or red potatoes work well)" + | ||
"\r\n3-4 cloves of garlic, minced" + | ||
"\r\nFresh dill, chopped" + | ||
"\r\nOlive oil" + | ||
"\r\nSalt and pepper to taste" + | ||
"\r\nOptional: Lemon wedges for serving" + | ||
"\r\nInstructions:" + | ||
"\r\nPreheat the Oven:" + | ||
"\r\n" + | ||
"\r\nPreheat your oven to 400°F (200°C)." + | ||
"\r\nPrepare the Potatoes:" + | ||
"\r\n" + | ||
"\r\nWash and cut the potatoes into small, even-sized chunks or wedges." + | ||
"\r\nPlace the potato pieces on a baking sheet. Drizzle with olive oil, and sprinkle with salt and pepper." + | ||
"\r\nToss the potatoes to coat them evenly." + | ||
"\r\nPlace the baking sheet in the oven and roast for about 25-30 minutes, or until the potatoes are golden and crispy. Stir once halfway through cooking." + | ||
"\r\nPrepare the Fish:" + | ||
"\r\n" + | ||
"\r\nWhile the potatoes are roasting, place the fish fillets on another baking sheet lined with parchment paper or lightly greased with olive oil." + | ||
"\r\nIn a small bowl, mix the minced garlic, chopped dill, a pinch of salt, and a couple of tablespoons of olive oil." + | ||
"\r\nSpoon the garlic and dill mixture over the fish fillets, spreading it evenly." + | ||
"\r\nBake the Fish:" + | ||
"\r\n" + | ||
"\r\nAfter the potatoes have been in the oven for about 15 minutes, place the baking sheet with the fish in the oven." + | ||
"\r\nBake the fish for 10-15 minutes, depending on the thickness of the fillets. The fish should be opaque and flake easily with a fork when done." + | ||
"\r\nServe:" + | ||
"\r\n" + | ||
"\r\nRemove both the fish and potatoes from the oven." + | ||
"\r\nServe the baked fish with a side of roasted potatoes." + | ||
"\r\nOptionally, garnish with additional fresh dill and serve with lemon wedges for an extra burst of flavor." + | ||
"\r\nNotes:" + | ||
"\r\nEnsure the baking sheets are not overcrowded to allow for even cooking." + | ||
"\r\nAdjust the seasoning according to your taste preference." + | ||
"\r\nFeel free to add other herbs or spices that you like." + | ||
"\r\nEnjoy your meal!"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
namespace CookingApp.Models | ||
{ | ||
using CookingApp.Infrastructure.Common; | ||
using MongoDB.Bson; | ||
using MongoDB.Bson.Serialization.Attributes; | ||
|
||
public class RecipeModel | ||
public class RecipeModel : MongoEntity | ||
{ | ||
class Recipe | ||
{ | ||
[BsonId] | ||
[BsonRepresentation(BsonType.ObjectId)] | ||
public int Id { get; set; } | ||
[BsonId] | ||
[BsonRepresentation(BsonType.ObjectId)] | ||
public int Id { get; set; } | ||
|
||
[BsonElement("content")] | ||
public string Content { get; set; } | ||
[BsonElement("content")] | ||
public string Content { get; set; } | ||
|
||
[BsonElement("created")] | ||
public DateTime Created { get; set; } | ||
[BsonElement("created")] | ||
public DateTime Created { get; set; } | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters