Does this function_calling implementation seem robust and clever? If not, can anyone suggest what I can improve in the prompts and function_calling to get the desired and valid output?
{
"model": "gpt-3.5-turbo-0125",
"messages": [
{
"role": "system",
"content": "You are an intelligent React coder currently writing code. Your cursor is now at {cursor}."
},
{
"role": "user",
"content": "import React, {useE{cursor}"
}
],
"functions": [
{
"name": "continued_code",
"description": "The appropriate continuation of the code. Analyze all the code and write the continuation from where the cursor is located.",
"parameters": {
"type": "object",
"properties": {
"continued_code": {
"type": "string",
"description": "The appropriate code continuation from {cursor}."
}
}
}
}
],
"function_call": "auto"
}