openai
openai copied to clipboard
FunctionCallingHelper unable to handle array parameter
When making a function definition using FunctionCallingHelper if the function has an array for a parameter it just errors, the code for the other method of making function definitions seems to support it however.
please share a code sample
//Generates a 'Parameter type 'System.Single[]' not supported' Exception when run, any type of array does this
Functions = FunctionCallingHelper.GetFunctionDefinitions<Calculator>();
public class Calculator
{
[FunctionDescription("Adds an array of numbers together.")]
public float Sum(float[] nums)
{
return nums.Sum();
}
}
How to customize the parameters of the ChatCompletionCreateRequest?,openai Updated, you can carry the file ID, but the current SDK does not seem to be supported,Thanks
@MayDay-wpf, I have not yet implemented all the changes announced at devday.
@Kanedsodas I will investigate this, thanks for sharing.