Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function_calling_finding_nearby_places.ipynb typos #92

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
},
{
Expand Down Expand Up @@ -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"
]
},
Expand All @@ -403,7 +403,7 @@
},
"outputs": [],
"source": [
"public async Task<string> ProvideReccomendations(string userQuestion){\n",
"public async Task<string> 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",
Expand Down Expand Up @@ -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();"
]
Expand Down