From 46f25e55ca44f63cabc2c3f9ca6248a268dd3f86 Mon Sep 17 00:00:00 2001 From: Dan Benitah Date: Mon, 15 Jan 2024 19:08:15 +0000 Subject: [PATCH] Update Function_calling_finding_nearby_places.ipynb --- .../csharp/Function_calling_finding_nearby_places.ipynb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Basic_Samples/Functions/dotnet/csharp/Function_calling_finding_nearby_places.ipynb b/Basic_Samples/Functions/dotnet/csharp/Function_calling_finding_nearby_places.ipynb index f62af43b..bb777242 100644 --- a/Basic_Samples/Functions/dotnet/csharp/Function_calling_finding_nearby_places.ipynb +++ b/Basic_Samples/Functions/dotnet/csharp/Function_calling_finding_nearby_places.ipynb @@ -311,7 +311,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "This ustility functions helps translating a `GptFunction` to the `FunctionDefinition` type" + "This utility function helps translating a `GptFunction` to the `FunctionDefinition` type" ] }, { @@ -383,7 +383,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "### Create ProvideReccomendations\n", + "### Create ProvideRecommendations\n", "This function will use the `GptFunction` and `ChatGPT` to answer a user question by calling the function with parameters generated by the LLM.\n" ] }, @@ -403,7 +403,7 @@ }, "outputs": [], "source": [ - "public async Task ProvideReccomendations(string userQuestion){\n", + "public async Task ProvideRecommendations(string userQuestion){\n", " var response = await client.GetChatCompletionsAsync(new ChatCompletionsOptions{\n", " Messages={\n", " new ChatMessage(ChatRole.System, \"You are a sophisticated AI assistant, a specialist in user intent detection and interpretation. Your task is to perceive and respond to the user's needs, even when they're expressed in an indirect or direct manner. You excel in recognizing subtle cues: for example, if a user states they are 'hungry', you should assume they are seeking nearby dining options such as a restaurant or a cafe. If they indicate feeling 'tired', 'weary', or mention a long journey, interpret this as a request for accommodation options like hotels or guest houses. However, remember to navigate the fine line of interpretation and assumption: if a user's intent is unclear or can be interpreted in multiple ways, do not hesitate to politely ask for additional clarification. Use only values from the nums in the functions.\"),\n", @@ -446,7 +446,7 @@ } ], "source": [ - "var response = await ProvideReccomendations(\"I am hungry in Seattle, actually Capitol Hill. At the moment I would appreaciate something local and cheap. Maybe a pub? Don't know what is the best to go for. I am open to any idea, What do you suggest?\");\n", + "var response = await ProvideRecommendations(\"I am hungry in Seattle, actually Capitol Hill. At the moment I would appreaciate something local and cheap. Maybe a pub? Don't know what is the best to go for. I am open to any idea, What do you suggest?\");\n", "\n", "response.Display();" ]