Skip to content

Commit

Permalink
spelling error fuction_to_call -> function_to_call (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbullwinkle authored Jul 21, 2023
1 parent e48ed98 commit 6156185
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Basic_Samples/Functions/working_with_functions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -615,13 +615,13 @@
" # verify function exists\n",
" if function_name not in available_functions:\n",
" return \"Function \" + function_name + \" does not exist\"\n",
" fuction_to_call = available_functions[function_name] \n",
" function_to_call = available_functions[function_name] \n",
" \n",
" # verify function has correct number of arguments\n",
" function_args = json.loads(response_message[\"function_call\"][\"arguments\"])\n",
" if check_args(fuction_to_call, function_args) is False:\n",
" if check_args(function_to_call, function_args) is False:\n",
" return \"Invalid number of arguments for function: \" + function_name\n",
" function_response = fuction_to_call(**function_args)\n",
" function_response = function_to_call(**function_args)\n",
" \n",
" print(\"Output of function call:\")\n",
" print(function_response)\n",
Expand Down Expand Up @@ -736,13 +736,13 @@
" # verify function exists\n",
" if function_name not in available_functions:\n",
" return \"Function \" + function_name + \" does not exist\"\n",
" fuction_to_call = available_functions[function_name] \n",
" function_to_call = available_functions[function_name] \n",
" \n",
" # verify function has correct number of arguments\n",
" function_args = json.loads(response_message[\"function_call\"][\"arguments\"])\n",
" if check_args(fuction_to_call, function_args) is False:\n",
" if check_args(function_to_call, function_args) is False:\n",
" return \"Invalid number of arguments for function: \" + function_name\n",
" function_response = fuction_to_call(**function_args)\n",
" function_response = function_to_call(**function_args)\n",
" \n",
" print(\"Output of function call:\")\n",
" print(function_response)\n",
Expand Down

0 comments on commit 6156185

Please sign in to comment.